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 $favColor[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.60.0040.01117.00
8.3.50.0070.01416.59
8.3.40.0070.00718.60
8.3.30.0070.00718.60
8.3.20.0000.00820.27
8.3.10.0060.00321.61
8.3.00.0050.00321.95
8.2.180.0110.01118.30
8.2.170.0070.00722.96
8.2.160.0080.00819.13
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00721.05
8.2.120.0000.00926.35
8.2.110.0060.00322.31
8.2.100.0090.00317.90
8.2.90.0080.00019.35
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0080.00018.16
8.2.50.0030.00518.10
8.2.40.0040.00420.50
8.2.30.0040.00419.25
8.2.20.0000.00818.18
8.2.10.0070.00018.00
8.2.00.0070.00017.90
8.1.280.0140.00325.92
8.1.270.0040.00422.06
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0080.00023.96
8.1.230.0030.00717.95
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0000.00917.22
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0030.00718.31
8.1.160.0050.00218.92
8.1.150.0040.00418.90
8.1.140.0040.00419.64
8.1.130.0000.00718.77
8.1.120.0000.00817.47
8.1.110.0000.00817.43
8.1.100.0000.00717.50
8.1.90.0030.00517.39
8.1.80.0030.00517.52
8.1.70.0030.00317.42
8.1.60.0000.00817.50
8.1.50.0040.00417.48
8.1.40.0080.00017.41
8.1.30.0040.00417.54
8.1.20.0050.00317.63
8.1.10.0030.00617.48
8.1.00.0040.00417.56
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.50
8.0.270.0000.00717.25
8.0.260.0030.00316.88
8.0.250.0030.00317.02
8.0.240.0030.00517.04
8.0.230.0000.00717.02
8.0.220.0030.00316.91
8.0.210.0030.00316.96
8.0.200.0000.00717.00
8.0.190.0060.00317.01
8.0.180.0040.00416.91
8.0.170.0030.00316.87
8.0.160.0040.00416.96
8.0.150.0000.00716.80
8.0.140.0070.00016.84
8.0.130.0000.00513.39
8.0.120.0040.00416.91
8.0.110.0040.00416.96
8.0.100.0050.00216.99
8.0.90.0040.00416.97
8.0.80.0090.00616.86
8.0.70.0060.00316.96
8.0.60.0000.00816.72
8.0.50.0000.00816.90
8.0.30.0120.00717.00
8.0.20.0070.01117.40
8.0.10.0040.00417.07
8.0.00.0060.01216.91
7.4.330.0000.00615.55
7.4.320.0000.00716.42
7.4.300.0000.00716.51
7.4.290.0070.00016.49
7.4.280.0080.00016.44
7.4.270.0040.00416.45
7.4.260.0030.00316.47
7.4.250.0090.00016.51
7.4.240.0070.00016.33
7.4.230.0070.00016.57
7.4.220.0100.00716.39
7.4.210.0060.01316.38
7.4.200.0000.00816.61
7.4.160.0090.01016.49
7.4.150.0100.00717.40
7.4.140.0080.00917.86
7.4.130.0060.01516.62
7.4.120.0140.00416.54
7.4.110.0100.01316.54
7.4.100.0070.01016.47
7.4.90.0070.01116.57
7.4.80.0090.00719.39
7.4.70.0030.01616.26
7.4.60.0100.00716.73
7.4.50.0100.00716.64
7.4.40.0130.00316.63
7.4.30.0120.00616.52
7.4.00.0070.01114.95
7.3.330.0030.00313.25
7.3.320.0060.00013.25
7.3.310.0030.00316.18
7.3.300.0030.00316.23
7.3.290.0120.00316.23
7.3.280.0090.00816.25
7.3.270.0040.01317.40
7.3.260.0110.00816.45
7.3.250.0110.00816.23
7.3.240.0100.01116.41
7.3.230.0070.01016.54
7.3.210.0060.01016.57
7.3.200.0040.01516.28
7.3.190.0070.01516.41
7.3.180.0110.00516.21
7.3.170.0090.01516.54
7.3.160.0100.00716.21
7.3.120.0100.00814.64
7.3.110.0070.00714.84
7.3.100.0100.00314.62
7.3.90.0060.00514.91
7.3.80.0050.00914.99
7.3.70.0030.00914.63
7.3.60.0060.00714.85
7.3.50.0040.01114.82
7.3.40.0050.01014.71
7.3.30.0050.00614.68
7.3.20.0080.00816.68
7.3.10.0060.00616.69
7.3.00.0070.00416.65
7.2.330.0060.01216.66
7.2.320.0070.01016.34
7.2.310.0120.00916.48
7.2.300.0130.00916.75
7.2.290.0030.01216.50
7.2.250.0030.01515.26
7.2.240.0050.01315.07
7.2.230.0050.00615.21
7.2.220.0060.00814.88
7.2.210.0020.00914.90
7.2.200.0040.01014.95
7.2.190.0030.00914.92
7.2.180.0090.00315.15
7.2.170.0060.00914.94
7.2.160.0030.00615.20
7.2.150.0070.00716.94
7.2.140.0040.01116.93
7.2.130.0000.01216.95
7.2.120.0060.00617.02
7.2.110.0000.00916.96
7.2.100.0030.01017.02
7.2.90.0000.01216.79
7.2.80.0030.00916.84
7.2.70.0030.00917.05
7.2.60.0050.00716.80
7.2.50.0040.01117.02
7.2.40.0090.00617.02
7.2.30.0040.01117.14
7.2.20.0060.00916.96
7.2.10.0030.01016.72
7.2.00.0020.01118.04
7.1.330.0050.01015.74
7.1.320.0060.00415.66
7.1.310.0050.00815.79
7.1.300.0050.01015.71
7.1.290.0070.00915.79
7.1.280.0080.00715.77
7.1.270.0080.00315.65
7.1.260.0040.00915.83
7.1.250.0040.01115.87
7.1.200.0070.00315.56
7.1.100.0040.00818.25
7.1.70.0030.01317.21
7.1.60.0220.01334.92
7.1.50.0170.01734.87
7.1.40.0300.01034.50
7.1.30.0140.01834.34
7.1.20.0170.02034.48
7.1.10.0090.01116.54
7.1.00.0070.00716.88
7.0.200.0060.00916.76
7.0.190.0060.01216.41
7.0.180.0140.00616.14
7.0.170.0060.01316.36
7.0.160.0060.01016.20
7.0.150.0100.00816.39
7.0.140.0100.00716.37
7.0.130.0040.01116.51
7.0.120.0040.01116.35
7.0.110.0070.00716.26
7.0.100.0030.01016.20
7.0.90.0070.00716.31
7.0.80.0150.00016.46
7.0.70.0000.01316.48
7.0.60.0030.01116.23
7.0.50.0030.01216.30
7.0.40.0060.01416.51
7.0.30.0130.00616.37
7.0.20.0140.00016.55
7.0.10.0090.00616.25
7.0.00.0070.00716.39

preferences:
37.79 ms | 401 KiB | 5 Q