3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); // Simple array: $array = array(1, 2); print_r($array); $count = count($array); for ($i = 0; $i < $count; $i++) { echo "\nChecking $i: \n"; echo "Bad: " . $array['$i'][1] . "\n"; echo "Good: " . $array[$i] . "\n"; echo "Bad: {$array['$i']}\n"; echo "Good: {$array[$i]}\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.0070.01518.56
8.3.50.0110.00722.05
8.3.40.0110.00718.93
8.3.30.0070.01018.67
8.3.20.0000.00818.90
8.3.10.0000.00721.22
8.3.00.0030.00623.71
8.2.180.0150.00017.00
8.2.170.0090.00622.96
8.2.160.0100.00320.38
8.2.150.0030.00624.18
8.2.140.0030.00524.66
8.2.130.0000.00826.16
8.2.120.0040.00421.12
8.2.110.0030.00720.34
8.2.100.0080.00317.84
8.2.90.0050.00319.13
8.2.80.0040.00419.25
8.2.70.0060.00317.63
8.2.60.0040.00418.05
8.2.50.0030.00718.07
8.2.40.0050.00518.16
8.2.30.0040.00421.10
8.2.20.0000.00817.79
8.2.10.0080.00017.70
8.2.00.0080.00017.70
8.1.280.0100.01025.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0080.00420.81
8.1.230.0060.00620.96
8.1.220.0000.00818.77
8.1.210.0080.00018.77
8.1.200.0090.00017.36
8.1.190.0000.00817.40
8.1.180.0040.00418.10
8.1.170.0030.00518.70
8.1.160.0040.00418.90
8.1.150.0040.00418.66
8.1.140.0070.00017.52
8.1.130.0030.00317.76
8.1.120.0030.00417.38
8.1.110.0050.00317.37
8.1.100.0090.00017.47
8.1.90.0020.00517.38
8.1.80.0000.00717.42
8.1.70.0000.00717.47
8.1.60.0000.00917.59
8.1.50.0070.00017.37
8.1.40.0040.00417.50
8.1.30.0040.00417.65
8.1.20.0000.00817.57
8.1.10.0000.00717.57
8.1.00.0000.00817.41
8.0.300.0040.00419.89
8.0.290.0030.00317.18
8.0.280.0030.00318.50
8.0.270.0040.00417.18
8.0.260.0030.00316.88
8.0.250.0040.00416.94
8.0.240.0100.00017.01
8.0.230.0030.00317.04
8.0.220.0030.00616.95
8.0.210.0000.00717.00
8.0.200.0000.00616.94
8.0.190.0040.00416.92
8.0.180.0050.00316.88
8.0.170.0000.00816.89
8.0.160.0030.00316.88
8.0.150.0040.00416.88
8.0.140.0000.00716.82
8.0.130.0060.00013.33
8.0.120.0000.00716.91
8.0.110.0040.00416.95
8.0.100.0050.00217.03
8.0.90.0050.00316.91
8.0.80.0040.01116.98
8.0.70.0000.00716.98
8.0.60.0040.00416.82
8.0.50.0000.00816.96
8.0.30.0080.01017.16
8.0.20.0170.00317.40
8.0.10.0000.00717.05
8.0.00.0140.01116.79
7.4.330.0050.00016.79
7.4.320.0030.00316.46
7.4.300.0000.00616.53
7.4.290.0030.00316.47
7.4.280.0030.00316.61
7.4.270.0040.00416.53
7.4.260.0000.00513.41
7.4.250.0030.00616.49
7.4.240.0030.00316.55
7.4.230.0040.00416.63
7.4.220.0140.00316.43
7.4.210.0060.01016.63
7.4.200.0000.00716.53
7.4.190.0000.00716.41
7.4.160.0120.00616.61
7.4.150.0150.00617.40
7.4.140.0100.01217.86
7.4.130.0090.01016.56
7.4.120.0120.00816.56
7.4.110.0100.00716.58
7.4.100.0000.02416.36
7.4.90.0070.01116.64
7.4.80.0100.01019.39
7.4.70.0110.00616.48
7.4.60.0030.01316.52
7.4.50.0030.00616.31
7.4.40.0040.01122.77
7.4.30.0100.01016.32
7.4.10.0000.01815.14
7.4.00.0080.01014.88
7.3.330.0030.00313.25
7.3.320.0030.00313.32
7.3.310.0000.00716.46
7.3.300.0000.00716.27
7.3.290.0070.01416.41
7.3.280.0080.00916.37
7.3.270.0140.00317.40
7.3.260.0140.00718.24
7.3.250.0100.00616.50
7.3.240.0090.00816.66
7.3.230.0040.01416.51
7.3.210.0140.00416.61
7.3.200.0100.00719.39
7.3.190.0080.00916.43
7.3.180.0140.00316.43
7.3.170.0030.01516.46
7.3.160.0070.01016.50
7.3.130.0080.01215.09
7.3.120.0060.01014.75
7.3.110.0080.00614.95
7.3.100.0050.00914.67
7.3.90.0050.00614.78
7.3.80.0090.00614.85
7.3.70.0040.00914.82
7.3.60.0060.00814.94
7.3.50.0040.00814.90
7.3.40.0090.00514.92
7.3.30.0040.00914.87
7.3.20.0070.00816.76
7.3.10.0130.00816.56
7.3.00.0070.01216.54
7.2.330.0120.01216.75
7.2.320.0140.00716.82
7.2.310.0090.00916.54
7.2.300.0090.00916.58
7.2.290.0130.00316.70
7.2.260.0090.00915.28
7.2.250.0060.00915.18
7.2.240.0030.01315.07
7.2.230.0060.01115.00
7.2.220.0080.00714.91
7.2.210.0080.00614.97
7.2.200.0090.00615.00
7.2.190.0090.00614.97
7.2.180.0040.01014.99
7.2.170.0050.00814.98
7.2.160.0040.01114.94
7.2.150.0090.00616.72
7.2.140.0050.00916.85
7.2.130.0080.00616.69
7.2.120.0110.00916.76
7.2.110.0090.00716.78
7.2.100.0090.00916.66
7.2.90.0070.00716.84
7.2.80.0060.00816.86
7.2.70.0030.00916.84
7.2.60.0070.00616.69
7.2.50.0040.00916.78
7.2.40.0040.01116.78
7.2.30.0050.00816.90
7.2.20.0020.01216.85
7.2.10.0070.00616.88
7.2.00.0070.00916.97
7.1.330.0030.01115.79
7.1.320.0080.00815.79
7.1.310.0060.00715.70
7.1.300.0060.00915.80
7.1.290.0050.00815.67
7.1.280.0080.00815.78
7.1.270.0050.01015.66
7.1.260.0050.01015.72
7.1.250.0120.00615.59
7.1.240.0110.00716.04
7.1.230.0040.01115.47
7.1.220.0040.00415.84
7.1.210.0040.00715.84
7.1.200.0080.00415.88
7.1.190.0060.00916.04
7.1.180.0080.00015.70
7.1.170.0060.00615.99
7.1.160.0120.00015.53
7.1.150.0040.01115.73
7.1.140.0040.01215.88
7.1.130.0100.01015.86
7.1.120.0050.00515.82
7.1.110.0100.00315.87
7.1.100.0030.01015.89
7.1.90.0030.00915.93
7.1.80.0030.00615.95
7.1.70.0010.00716.26
7.1.60.0060.00816.53
7.1.50.0090.00516.48
7.1.40.0010.00916.37
7.1.30.0030.00916.41
7.1.20.0050.00916.40
7.1.10.0010.00716.21
7.1.00.0000.00916.26
7.0.330.0090.00015.54
7.0.320.0040.00415.58
7.0.310.0080.00415.40
7.0.300.0030.01315.59
7.0.290.0030.00915.47
7.0.280.0080.00015.43
7.0.270.0060.01315.42
7.0.260.0040.00715.40
7.0.250.0070.00715.29
7.0.240.0030.01015.42
7.0.230.0070.00715.34
7.0.220.0100.00315.16
7.0.210.0000.00915.48
7.0.200.0050.00616.05
7.0.190.0050.00516.09
7.0.180.0050.00415.96
7.0.170.0020.00816.01
7.0.160.0040.00415.82
7.0.150.0000.01115.98
7.0.140.0050.00715.95
7.0.130.0000.01015.88
7.0.120.0030.01115.99
7.0.110.0070.00215.95
7.0.100.0040.01116.03
7.0.90.0050.00515.85
7.0.80.0070.00315.90
7.0.70.0050.00615.80
7.0.60.0000.00915.83
7.0.50.0020.00815.78
7.0.40.0060.00614.09
7.0.30.0060.00614.18
7.0.20.0050.01114.12
7.0.10.0030.01214.12
7.0.00.0040.00814.12
5.6.400.0060.00314.58
5.6.390.0000.01614.29
5.6.380.0040.00414.52
5.6.370.0040.01114.45
5.6.360.0030.01214.30
5.6.350.0060.00614.21
5.6.340.0030.01014.36
5.6.330.0060.00914.66
5.6.320.0030.00614.25
5.6.310.0030.00614.59
5.6.300.0040.02617.54
5.6.290.0050.02217.73
5.6.280.0040.02517.59
5.6.270.0050.03917.68
5.6.260.0060.02917.81
5.6.250.0120.02217.68
5.6.240.0070.02317.58
5.6.230.0030.02817.72
5.6.220.0030.02517.71
5.6.210.0100.02017.79
5.6.200.0050.05017.52
5.6.190.0030.03617.74
5.6.180.0110.02617.81
5.6.170.0070.03817.56
5.6.160.0040.03117.72
5.6.150.0020.02817.63
5.6.140.0060.02217.53
5.6.130.0050.02517.70
5.6.120.0050.02417.57
5.6.110.0050.02917.45
5.6.100.0130.02517.59
5.6.90.0030.02917.55
5.6.80.0030.02417.33
5.6.70.0030.02717.24
5.6.60.0050.03517.36
5.6.50.0060.02217.43
5.6.40.0050.02817.42
5.6.30.0080.02017.29
5.6.20.0080.02417.12
5.6.10.0110.01617.20
5.6.00.0030.02417.32
5.5.380.0020.02616.01
5.5.370.0040.04415.84
5.5.360.0040.02615.93
5.5.350.0020.02816.03
5.5.340.0030.05216.07
5.5.330.0030.04716.08
5.5.320.0030.02715.95
5.5.310.0090.03716.34
5.5.300.0040.04516.28
5.5.290.0000.03216.20
5.5.280.0060.02416.04
5.5.270.0080.04016.27
5.5.260.0050.02316.31
5.5.250.0090.02116.14
5.5.240.0050.02515.83
5.5.230.0090.02515.91
5.5.220.0020.02715.96
5.5.210.0070.02115.90
5.5.200.0080.02315.93
5.5.190.0060.02215.53
5.5.180.0030.02615.92
5.5.170.0080.00814.25
5.5.160.0040.02515.57
5.5.150.0060.02215.74
5.5.140.0050.02615.86
5.5.130.0030.02615.71
5.5.120.0040.02315.89
5.5.110.0060.02415.80
5.5.100.0020.02615.66
5.5.90.0050.02315.78
5.5.80.0070.02015.73
5.5.70.0060.02415.78
5.5.60.0050.02115.73
5.5.50.0040.02215.74
5.5.40.0030.03915.80
5.5.30.0050.02415.79
5.5.20.0030.02715.67
5.5.10.0030.02415.88
5.5.00.0000.03015.67
5.4.450.0030.02915.44
5.4.440.0070.04515.21
5.4.430.0030.02515.29
5.4.420.0070.02815.45
5.4.410.0000.03215.26
5.4.400.0030.02215.20
5.4.390.0020.02515.21
5.4.380.0050.02115.02
5.4.370.0060.01815.12
5.4.360.0030.02615.16
5.4.350.0010.02615.03
5.4.340.0030.02215.00
5.4.330.0040.00810.90
5.4.320.0020.02415.16
5.4.310.0080.02015.02
5.4.300.0050.02015.04
5.4.290.0000.02915.15
5.4.280.0050.02515.01
5.4.270.0050.02115.24
5.4.260.0040.02315.09
5.4.250.0050.02915.10
5.4.240.0050.03415.08
5.4.230.0020.02315.07
5.4.220.0070.03115.02
5.4.210.0050.03714.93
5.4.200.0070.04014.98
5.4.190.0030.02315.13
5.4.180.0030.02415.15
5.4.170.0070.01915.04
5.4.160.0040.02014.89
5.4.150.0090.03415.04
5.4.140.0050.03013.84
5.4.130.0030.03814.02
5.4.120.0070.02014.04
5.4.110.0020.04813.91
5.4.100.0030.03413.83
5.4.90.0070.02013.78
5.4.80.0040.02213.91
5.4.70.0080.03913.78
5.4.60.0020.02613.72
5.4.50.0070.02013.96
5.4.40.0060.02813.79
5.4.30.0050.01913.91
5.4.20.0030.02114.01
5.4.10.0040.02213.83
5.4.00.0060.03713.61
5.3.290.0080.01912.82
5.3.280.0070.01712.66
5.3.270.0030.03112.59
5.3.260.0060.02112.71
5.3.250.0050.03012.63
5.3.240.0070.02712.57
5.3.230.0050.02612.76
5.3.220.0020.04112.70
5.3.210.0070.03912.54
5.3.200.0060.02612.63
5.3.190.0050.02512.57
5.3.180.0030.03412.75
5.3.170.0020.03212.71
5.3.160.0060.02112.79
5.3.150.0050.01812.80
5.3.140.0030.02912.73
5.3.130.0050.02712.67
5.3.120.0050.02212.69
5.3.110.0070.02312.72
5.3.100.0050.03912.65
5.3.90.0090.01412.76
5.3.80.0020.03212.58
5.3.70.0030.03612.50
5.3.60.0030.02812.69
5.3.50.0050.03412.54
5.3.40.0050.02012.60
5.3.30.0050.02212.69
5.3.20.0030.02212.59
5.3.10.0030.02012.54
5.3.00.0030.02112.52
5.2.170.0100.05414.74
5.2.160.0030.03914.74
5.2.150.0030.05714.74
5.2.140.0090.02414.74
5.2.130.0030.03114.74
5.2.120.0090.02514.74
5.2.110.0000.03014.74
5.2.100.0030.04414.74
5.2.90.0000.03214.74
5.2.80.0040.02814.74
5.2.70.0000.03114.74
5.2.60.0030.03314.74
5.2.50.0030.03214.74
5.2.40.0060.02914.74
5.2.30.0060.04814.74
5.2.20.0100.03314.74
5.2.10.0000.03014.74
5.2.00.0040.03214.74
5.1.60.0070.02614.74
5.1.50.0030.02514.74
5.1.40.0070.02014.74
5.1.30.0030.02914.74
5.1.20.0060.02514.74
5.1.10.0030.05414.74
5.1.00.0100.04914.74
5.0.50.0000.02214.74
5.0.40.0000.02214.74
5.0.30.0000.05014.74
5.0.20.0040.02114.74
5.0.10.0030.03614.74
5.0.00.0070.05614.74
4.4.90.0030.01314.74
4.4.80.0000.02014.74
4.4.70.0030.01514.74
4.4.60.0000.01814.74
4.4.50.0060.01514.74
4.4.40.0030.02314.74
4.4.30.0000.02314.74
4.4.20.0000.01814.74
4.4.10.0030.01514.74
4.4.00.0000.02614.74
4.3.110.0000.02014.74
4.3.100.0000.01714.74
4.3.90.0000.01814.74
4.3.80.0000.02614.74
4.3.70.0040.02214.74
4.3.60.0060.02914.74
4.3.50.0000.03814.74
4.3.40.0060.02814.74
4.3.30.0030.03214.74
4.3.20.0000.04314.74
4.3.10.0110.02814.74
4.3.00.0000.03014.74

preferences:
53.22 ms | 401 KiB | 5 Q