Anonymous View

3v4l.org

run code in 500+ PHP versions simultaneously
<?php //$_POST['event_id'] = '1'; function executeDone() { $eventId = (isset($_POST['event_id'])) ? (int)$_POST['event_id'] : ''; var_dump($eventId); } $res = executeDone(); class TestEvent { public static function getCurrentEvent() { // 開催中のイベントIDを取得 $eventId = 10; return $eventId; } } class TestStatus { private $eventId; private $userId; public function __construct($eventId, $userId) { $this->eventId = $eventId; $this->userId = $userId; } public static function process($userId) { $eventId = TestEvent::getCurrentEvent(); $obj = new TestStatus($eventId, $userId); // 処理 $data = ['num' => 1]; return $data; } } $userId = '123456'; $data = TestStatus::process($userId);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.70.0340.00816.65
8.5.60.0390.00816.55
8.5.50.0330.00816.30
8.5.40.0350.00516.38
8.5.30.0360.00616.63
8.5.20.0320.01016.55
8.5.10.0310.00916.58
8.5.00.0100.00816.37
8.4.220.0330.01119.56
8.4.210.0310.01019.51
8.4.200.0290.01319.55
8.4.190.0340.01119.44
8.4.180.0350.01119.59
8.4.170.0310.01219.68
8.4.160.0320.01119.59
8.4.150.0350.00719.45
8.4.140.0380.00717.52
8.4.130.0310.01017.50
8.4.120.0350.00917.69
8.4.110.0360.00817.57
8.4.100.0390.00717.60
8.4.90.0370.01017.56
8.4.80.0350.00817.88
8.4.70.0350.00718.00
8.4.60.0380.00817.51
8.4.50.0360.01417.52
8.4.40.0280.00617.87
8.4.30.0250.00517.67
8.4.20.0360.00817.55
8.4.10.0300.00917.61
8.3.310.0430.00718.41
8.3.300.0270.01618.06
8.3.290.0360.00718.10
8.3.280.0310.00418.00
8.3.270.0300.00916.68
8.3.260.0350.01016.41
8.3.250.0350.00816.51
8.3.240.0350.00916.73
8.3.230.0280.00516.74
8.3.220.0160.00416.68
8.3.210.0330.00816.70
8.3.200.0360.00816.67
8.3.190.0360.00616.64
8.3.180.0360.01016.67
8.3.170.0400.00416.49
8.3.160.0350.00816.71
8.3.150.0390.01116.39
8.3.140.0300.01016.52
8.3.130.0180.00516.58
8.3.120.0150.00316.60
8.3.110.0200.00516.54
8.3.100.0330.00716.62
8.3.90.0350.00816.77
8.3.80.0360.00816.39
8.3.70.0360.00916.78
8.3.60.0360.00816.54
8.3.50.0210.00716.57
8.3.40.0310.01418.03
8.3.30.0270.01017.85
8.3.20.0270.00917.77
8.3.10.0260.01117.86
8.3.00.0270.00917.89
8.2.310.0480.00717.54

preferences:
47.93 ms | 745 KiB | 5 Q