3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $array = ['Prinsha', 'Jypsy']; // echo $array[0]; // index is 0 // foreach($model as $key => $data) { // } // $array[1] = 'data'; // $array = ['model' => $model]; // $array = array(); // date('Y-m-d', strtotime("+3 days", $time)); $array = [1, 2, 3, 4]; echo $array[0] . "\n"; $associative = ['a' => 'one', 'apple' => '3v4l', '1337' => 'PHP sucks']; echo $associative['a'] . "\n"; echo $associative['apple'] . "\n"; echo $associative[1337] . "\n";

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.3.60.0120.00616.63
8.3.50.0110.00716.29
8.3.40.0120.00918.84
8.3.30.0090.00618.71
8.3.20.0070.00020.37
8.3.10.0060.00321.85
8.3.00.0080.00021.97
8.2.180.0100.01018.41
8.2.170.0130.00722.96
8.2.160.0110.00418.89
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00621.05
8.2.120.0000.00726.35
8.2.110.0060.00321.00
8.2.100.0060.00617.91
8.2.90.0040.00419.36
8.2.80.0000.00818.05
8.2.70.0060.00317.75
8.2.60.0030.00617.93
8.2.50.0030.00618.16
8.2.40.0040.00420.59
8.2.30.0040.00419.31
8.2.20.0030.00717.99
8.2.10.0040.00417.98
8.2.00.0000.00717.86
8.1.280.0070.01425.92
8.1.270.0060.00321.97
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00622.64
8.1.230.0070.00418.95
8.1.220.0000.00917.76
8.1.210.0050.00318.77
8.1.200.0060.00317.13
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0060.00318.48
8.1.160.0030.00518.88
8.1.150.0040.00420.67
8.1.140.0040.00419.58
8.1.130.0030.00318.89
8.1.120.0040.00417.51
8.1.110.0000.00817.31
8.1.100.0000.00817.47
8.1.90.0080.00017.48
8.1.80.0050.00317.46
8.1.70.0000.00717.43
8.1.60.0030.00617.47
8.1.50.0030.00617.44
8.1.40.0040.00417.49
8.1.30.0000.00817.70
8.1.20.0030.00517.55
8.1.10.0000.00817.60
8.1.00.0040.00417.39
8.0.300.0070.00020.02
8.0.290.0000.00716.75
8.0.280.0030.00318.45
8.0.270.0030.00317.25
8.0.260.0030.00316.80
8.0.250.0040.00416.90
8.0.240.0000.00916.95
8.0.230.0030.00317.03
8.0.220.0050.00316.90
8.0.210.0070.00016.91
8.0.200.0030.00316.93
8.0.190.0060.00316.96
8.0.180.0000.00716.94
8.0.170.0040.00316.95
8.0.160.0070.00016.88
8.0.150.0050.00216.83
8.0.140.0000.00716.73
8.0.130.0030.00313.38
8.0.120.0040.00416.82
8.0.110.0000.00816.93
8.0.100.0070.00016.73
8.0.90.0000.00716.71
8.0.80.0030.01216.95
8.0.70.0070.00016.78
8.0.60.0000.00716.77
8.0.50.0040.00416.61
8.0.30.0070.01017.11
8.0.20.0110.00817.40
8.0.10.0040.00416.96
8.0.00.0120.00616.69
7.4.330.0050.00015.55
7.4.320.0030.00316.43
7.4.300.0000.00616.45
7.4.290.0000.00616.43
7.4.280.0040.00416.54
7.4.270.0000.00716.53
7.4.260.0060.00016.43
7.4.250.0070.00016.37
7.4.240.0050.00216.53
7.4.230.0030.00316.34
7.4.220.0110.00716.47
7.4.210.0060.00816.52
7.4.200.0000.00616.57
7.4.160.0090.00716.49
7.4.150.0140.00317.40
7.4.140.0090.00917.86
7.4.130.0090.01016.43
7.4.120.0090.01116.61
7.4.110.0080.00816.46
7.4.100.0100.00716.44
7.4.90.0130.01016.40
7.4.80.0130.00319.39
7.4.70.0050.01116.36
7.4.60.0070.01016.56
7.4.50.0090.00616.21
7.4.40.0030.01316.45
7.4.30.0120.00616.76
7.4.00.0040.01114.96
7.3.330.0070.00013.06
7.3.320.0020.00213.10
7.3.310.0050.00216.23
7.3.300.0040.00416.18
7.3.290.0070.00816.22
7.3.280.0090.00716.17
7.3.270.0020.01517.40
7.3.260.0120.00516.33
7.3.250.0110.00716.41
7.3.240.0110.00716.41
7.3.230.0150.00416.25
7.3.210.0110.00616.56
7.3.200.0130.00616.46
7.3.190.0080.00816.23
7.3.180.0070.01516.50
7.3.170.0130.01016.57
7.3.160.0120.00616.38
7.2.330.0070.01116.43
7.2.320.0150.00616.54
7.2.310.0060.01816.52
7.2.300.0100.00716.27
7.2.290.0090.00616.26
7.2.60.0100.00716.89
7.2.00.0070.01119.40
7.1.200.0040.00715.77
7.1.100.0000.00918.16
7.1.70.0000.01417.25
7.1.60.0190.01635.14
7.1.50.0200.01234.59
7.1.40.0210.01434.21
7.1.30.0320.01334.41
7.1.20.0310.01134.63
7.1.10.0120.00316.67
7.1.00.0070.00716.48
7.0.200.0090.00916.91
7.0.190.0070.00716.82
7.0.180.0090.01216.11
7.0.170.0190.00316.24
7.0.160.0110.00816.08
7.0.150.0060.01216.34
7.0.140.0120.00616.30
7.0.130.0060.00916.36
7.0.120.0130.00316.41
7.0.110.0070.01416.13
7.0.100.0060.01416.31
7.0.90.0060.01216.27
7.0.80.0030.01416.02
7.0.70.0060.01316.25
7.0.60.0120.00616.07
7.0.50.0060.00916.45
7.0.40.0040.01216.38
7.0.30.0140.00016.46
7.0.20.0040.01416.48
7.0.10.0080.00516.24
7.0.00.0090.00616.27

preferences:
32.5 ms | 400 KiB | 5 Q