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"; $favColors = array(); $favColors[] = 'BlanchedAlmond'; $favColors[] = 'CadetBlue'; $favColors[] = 'BurlyWood'; $favColors[] = 'DarkOliveGreen'; $favColors[] = 'HotPink'; $favColors[] = 'Papayawhip'; echo $favColors[0];

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.70.0110.00416.50
8.3.60.0150.00316.63
8.3.50.0110.00616.64
8.3.40.0120.00318.80
8.3.30.0110.00418.53
8.3.20.0000.00720.29
8.3.10.0100.00021.71
8.3.00.0040.00422.14
8.2.180.0070.01418.28
8.2.170.0070.01022.96
8.2.160.0120.00318.86
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00421.04
8.2.120.0040.00726.35
8.2.110.0030.00620.39
8.2.100.0070.00417.97
8.2.90.0040.00419.34
8.2.80.0000.00918.05
8.2.70.0090.00517.63
8.2.60.0030.00517.93
8.2.50.0000.00818.10
8.2.40.0040.00420.34
8.2.30.0030.00619.31
8.2.20.0070.00318.13
8.2.10.0000.00717.98
8.2.00.0000.00718.05
8.1.280.0120.00925.92
8.1.270.0070.00022.05
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00023.96
8.1.230.0070.00320.82
8.1.220.0030.00617.79
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0090.00017.22
8.1.180.0040.00418.10
8.1.170.0100.00018.66
8.1.160.0070.00019.06
8.1.150.0030.00318.79
8.1.140.0040.00419.45
8.1.130.0030.00318.89
8.1.120.0030.00317.32
8.1.110.0000.00917.29
8.1.100.0050.00217.47
8.1.90.0000.00717.41
8.1.80.0030.00317.42
8.1.70.0070.00017.43
8.1.60.0000.00817.49
8.1.50.0060.00317.57
8.1.40.0050.00317.43
8.1.30.0090.00017.50
8.1.20.0040.00417.66
8.1.10.0000.00817.62
8.1.00.0000.00817.48
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00718.45
8.0.270.0000.00817.17
8.0.260.0040.00416.83
8.0.250.0040.00416.85
8.0.240.0050.00516.94
8.0.230.0030.00316.80
8.0.220.0070.00016.77
8.0.210.0000.00716.88
8.0.200.0040.00416.85
8.0.190.0050.00316.96
8.0.180.0030.00316.88
8.0.170.0000.00716.88
8.0.160.0000.00716.80
8.0.150.0000.00716.89
8.0.140.0070.00016.73
8.0.130.0040.00413.30
8.0.120.0020.00516.81
8.0.110.0030.00516.84
8.0.100.0050.00216.99
8.0.90.0030.00316.77
8.0.80.0130.00316.90
8.0.70.0050.00217.00
8.0.60.0020.00516.64
8.0.50.0020.00516.64
8.0.30.0110.00617.02
8.0.20.0100.00717.40
8.0.10.0000.00816.95
8.0.00.0030.01416.82
7.4.330.0020.00215.55
7.4.320.0000.00716.55
7.4.300.0030.00316.46
7.4.290.0030.00316.52
7.4.280.0030.00616.33
7.4.270.0000.00716.39
7.4.260.0030.00316.42
7.4.250.0000.00816.42
7.4.240.0000.00816.38
7.4.230.0000.00816.54
7.4.220.0160.00316.64
7.4.210.0000.01316.45
7.4.200.0030.00316.46
7.4.160.0110.00516.43
7.4.150.0040.01317.40
7.4.140.0140.00417.86
7.4.130.0060.01216.39
7.4.120.0090.01016.53
7.4.110.0100.01016.43
7.4.100.0130.00916.46
7.4.90.0040.01316.41
7.4.80.0030.01319.39
7.4.70.0130.00416.32
7.4.60.0090.00916.56
7.4.50.0040.01116.29
7.4.40.0130.00316.67
7.4.30.0100.00716.37
7.4.00.0030.01315.25
7.3.330.0030.00313.24
7.3.320.0060.00013.18
7.3.310.0060.00016.23
7.3.300.0050.00216.25
7.3.290.0060.00816.15
7.3.280.0100.00816.17
7.3.270.0130.00417.40
7.3.260.0110.01116.48
7.3.250.0110.00716.37
7.3.240.0090.01216.44
7.3.230.0100.00716.36
7.3.210.0070.01316.15
7.3.200.0110.00616.28
7.3.190.0030.02016.21
7.3.180.0100.00716.38
7.3.170.0130.00716.49
7.3.160.0070.01016.29
7.3.10.0060.00816.38
7.3.00.0150.00016.51
7.2.330.0070.01016.51
7.2.320.0030.01416.39
7.2.310.0070.01416.34
7.2.300.0100.00716.44
7.2.290.0030.01316.41
7.2.130.0040.00716.38
7.2.120.0140.01116.34
7.2.110.0080.01116.71
7.2.100.0120.01216.39
7.2.90.0080.00816.82
7.2.80.0120.00616.43
7.2.70.0070.01116.41
7.2.60.0110.00816.76
7.2.50.0140.00816.55
7.2.40.0140.01416.72
7.2.30.0000.01216.43
7.2.20.0030.00616.76
7.2.10.0070.00716.54
7.2.00.0030.01118.20
7.1.250.0060.00915.22
7.1.200.0070.00715.61
7.1.100.0030.00918.25
7.1.70.0120.00617.28
7.1.60.0180.01835.12
7.1.50.0220.00934.70
7.1.40.0200.00934.20
7.1.30.0130.01934.42
7.1.20.0200.01034.50
7.1.10.0100.00316.58
7.1.00.0120.00316.64
7.0.200.0060.01416.75
7.0.190.0100.00616.82
7.0.180.0090.00916.20
7.0.170.0090.00616.12
7.0.160.0000.01416.11
7.0.150.0030.01016.30
7.0.140.0100.00316.22
7.0.130.0030.01316.59
7.0.120.0090.00616.63
7.0.110.0090.00916.35
7.0.100.0060.01316.17
7.0.90.0040.01416.14
7.0.80.0060.01216.29
7.0.70.0040.01316.45
7.0.60.0030.01016.05
7.0.50.0060.01316.29
7.0.40.0000.01416.46
7.0.30.0130.00416.31
7.0.20.0040.00916.43
7.0.10.0060.00916.32
7.0.00.0070.00716.62

preferences:
36.5 ms | 401 KiB | 5 Q