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 $favColosr[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.0070.00716.50
8.3.50.0140.00316.63
8.3.40.0080.00818.84
8.3.30.0110.00418.79
8.3.20.0050.00322.09
8.3.10.0030.00621.77
8.3.00.0040.00421.92
8.2.180.0110.01118.66
8.2.170.0120.00322.96
8.2.160.0160.00319.06
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0080.00021.12
8.2.120.0000.00826.35
8.2.110.0070.00319.39
8.2.100.0070.00418.14
8.2.90.0030.00619.34
8.2.80.0000.00817.97
8.2.70.0040.00417.93
8.2.60.0080.00018.34
8.2.50.0000.00818.10
8.2.40.0040.00420.43
8.2.30.0040.00419.22
8.2.20.0060.00318.08
8.2.10.0070.00017.92
8.2.00.0030.00517.99
8.1.280.0210.00025.92
8.1.270.0000.00822.20
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00422.24
8.1.230.0040.00820.78
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0030.00717.35
8.1.190.0090.00017.22
8.1.180.0050.00318.10
8.1.170.0000.01218.56
8.1.160.0070.00018.92
8.1.150.0000.00818.87
8.1.140.0080.00019.42
8.1.130.0000.00718.80
8.1.120.0050.00317.36
8.1.110.0060.00317.30
8.1.100.0040.00417.36
8.1.90.0080.00017.36
8.1.80.0080.00017.53
8.1.70.0030.00317.41
8.1.60.0090.00017.51
8.1.50.0040.00417.40
8.1.40.0040.00417.39
8.1.30.0040.00417.67
8.1.20.0040.00417.69
8.1.10.0030.00617.55
8.1.00.0080.00017.48
8.0.300.0040.00421.54
8.0.290.0050.00316.75
8.0.280.0000.00718.35
8.0.270.0000.00717.19
8.0.260.0060.00016.80
8.0.250.0000.00716.95
8.0.240.0030.00616.99
8.0.230.0040.00417.05
8.0.220.0000.00716.95
8.0.210.0080.00016.96
8.0.200.0000.00616.94
8.0.190.0000.00817.00
8.0.180.0000.00716.93
8.0.170.0030.00316.93
8.0.160.0000.00816.99
8.0.150.0080.00017.00
8.0.140.0050.00216.84
8.0.130.0000.00713.49
8.0.120.0040.00416.87
8.0.110.0040.00416.98
8.0.100.0000.00716.86
8.0.90.0040.00416.75
8.0.80.0000.01616.91
8.0.70.0060.00316.89
8.0.60.0000.00716.81
8.0.50.0000.00816.77
8.0.30.0090.01216.95
8.0.20.0080.01017.40
8.0.10.0000.00716.90
8.0.00.0050.01416.78
7.4.330.0000.00615.55
7.4.320.0030.00316.54
7.4.300.0000.00716.36
7.4.290.0060.00016.56
7.4.280.0030.00616.29
7.4.270.0000.00816.46
7.4.260.0030.00316.56
7.4.250.0060.00316.43
7.4.240.0070.00016.40
7.4.230.0040.00416.57
7.4.220.0140.01116.55
7.4.210.0070.01316.37
7.4.200.0030.00316.34
7.4.160.0090.00716.35
7.4.150.0100.00717.40
7.4.140.0070.01017.86
7.4.130.0130.01016.54
7.4.120.0090.00816.55
7.4.110.0040.01516.43
7.4.100.0190.00316.45
7.4.90.0030.01516.61
7.4.80.0110.00619.39
7.4.70.0000.01716.52
7.4.60.0100.00716.64
7.4.50.0000.01616.43
7.4.40.0140.00316.46
7.4.30.0100.00716.40
7.4.10.0130.00614.89
7.4.00.0090.00915.01
7.3.330.0030.00313.22
7.3.320.0000.00513.20
7.3.310.0040.00416.14
7.3.300.0000.00616.16
7.3.290.0050.00916.24
7.3.280.0080.00916.24
7.3.270.0090.00917.40
7.3.260.0150.00716.41
7.3.250.0060.01016.41
7.3.240.0110.01316.49
7.3.230.0070.01016.48
7.3.210.0100.00716.42
7.3.200.0030.01316.43
7.3.190.0030.01316.43
7.3.180.0110.00716.43
7.3.170.0100.01016.24
7.3.160.0040.01116.45
7.3.130.0030.01314.47
7.3.120.0080.00814.74
7.3.110.0110.00614.73
7.3.100.0040.01114.72
7.3.90.0050.00914.71
7.3.80.0020.01214.79
7.3.70.0040.00714.82
7.3.60.0070.00814.85
7.3.50.0050.00914.74
7.3.40.0110.00214.67
7.3.30.0060.00714.69
7.3.20.0060.00716.60
7.3.10.0070.00616.51
7.3.00.0060.00716.59
7.2.330.0130.00716.67
7.2.320.0130.01016.69
7.2.310.0070.01416.73
7.2.300.0100.00616.64
7.2.290.0120.00416.69
7.2.260.0060.01214.95
7.2.250.0060.01214.96
7.2.240.0090.00914.71
7.2.230.0090.00615.15
7.2.220.0070.00815.02
7.2.210.0040.00914.98
7.2.200.0030.01014.93
7.2.190.0070.00815.05
7.2.180.0080.00814.96
7.2.170.0070.00815.00
7.2.160.0060.00615.13
7.2.150.0090.00616.66
7.2.140.0040.00816.96
7.2.130.0100.00616.93
7.2.120.0050.00816.75
7.2.110.0020.01016.90
7.2.100.0060.00616.83
7.2.90.0080.00416.93
7.2.80.0030.01016.82
7.2.70.0040.00916.77
7.2.60.0090.00616.91
7.2.50.0060.00616.87
7.2.40.0040.01116.97
7.2.30.0080.00616.82
7.2.20.0030.01016.86
7.2.10.0070.00716.73
7.2.00.0060.00817.67
7.1.330.0060.00915.75
7.1.320.0050.00615.77
7.1.310.0030.00815.70
7.1.300.0070.00615.71
7.1.290.0090.00615.81
7.1.280.0080.00615.75
7.1.270.0030.01015.68
7.1.260.0080.00415.82
7.1.250.0050.00715.56
7.1.240.0000.01315.58
7.1.230.0070.00415.86
7.1.220.0080.00015.85
7.1.210.0000.01515.61
7.1.200.0030.01115.62
7.1.190.0000.01115.72
7.1.180.0030.00915.64
7.1.170.0030.00715.88
7.1.160.0030.00915.87
7.1.150.0090.00615.55
7.1.140.0030.00915.76
7.1.130.0060.00915.65
7.1.120.0070.00715.50
7.1.110.0090.00615.71
7.1.100.0110.00816.86
7.1.90.0000.01115.91
7.1.80.0040.00715.43
7.1.70.0060.00916.35
7.1.60.0100.01325.42
7.1.50.0140.00825.26
7.1.40.0130.01325.19
7.1.30.0120.01225.17
7.1.20.0130.01025.24
7.1.10.0060.01216.14
7.1.00.0050.01116.41
7.0.330.0030.01015.09
7.0.320.0060.00315.30
7.0.310.0030.00715.17
7.0.300.0070.00615.42
7.0.290.0040.00415.52
7.0.280.0070.00715.25
7.0.270.0100.00715.32
7.0.260.0030.01015.28
7.0.250.0090.00615.34
7.0.240.0040.01115.41
7.0.230.0000.01315.46
7.0.220.0030.01015.23
7.0.210.0080.00314.97
7.0.200.0070.00716.06
7.0.190.0080.00715.87
7.0.180.0020.01315.80
7.0.170.0070.00815.83
7.0.160.0050.00815.81
7.0.150.0070.00715.82
7.0.140.0060.01015.91
7.0.130.0060.00915.86
7.0.120.0080.00815.87
7.0.110.0090.00615.70
7.0.100.0080.00915.82
7.0.90.0060.01115.91
7.0.80.0070.01115.89
7.0.70.0060.01015.88
7.0.60.0080.00815.85
7.0.50.0070.00915.72
7.0.40.0040.01314.96
7.0.30.0110.00715.08
7.0.20.0030.01215.02
7.0.10.0020.01214.87
7.0.00.0040.01014.98
5.6.400.0060.00314.67
5.6.390.0000.01514.28
5.6.380.0030.00914.34
5.6.370.0030.01014.04
5.6.360.0070.00714.48
5.6.350.0090.00614.59
5.6.340.0070.00714.59
5.6.330.0030.01314.63
5.6.320.0060.00314.60
5.6.310.0030.01014.41
5.6.300.0000.01514.02
5.6.290.0110.00314.43
5.6.280.0040.01114.46
5.6.270.0070.00714.48
5.6.260.0110.00414.47
5.6.250.0060.00914.25
5.6.240.0100.00614.22
5.6.230.0090.00914.64
5.6.220.0060.00914.32
5.6.210.0000.01414.23
5.6.200.0070.00714.34
5.6.190.0060.00914.09
5.6.180.0090.00914.41
5.6.170.0000.01414.17
5.6.160.0110.00314.46
5.6.150.0030.01014.40
5.6.140.0000.01114.21
5.6.130.0060.00614.13
5.6.120.0000.01414.44
5.6.110.0060.00314.40
5.6.100.0070.01114.16
5.6.90.0000.01414.22
5.6.80.0030.01114.46
5.6.70.0030.00614.10
5.6.60.0000.01114.15
5.6.50.0090.00313.97
5.6.40.0000.01414.62
5.6.30.0080.00314.07
5.6.20.0140.00014.49
5.6.10.0040.00814.59
5.6.00.0030.01414.40

preferences:
39.24 ms | 400 KiB | 5 Q