3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); // Simple array: $array = array(array('1' => 'satu', '2' => 'dua')); $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.0100.00718.43
8.3.50.0150.00921.96
8.3.40.0080.00819.02
8.3.30.0070.01418.90
8.3.20.0140.00320.34
8.3.10.0040.00422.13
8.3.00.0080.00022.45
8.2.180.0180.00016.49
8.2.170.0100.01022.96
8.2.160.0030.01720.53
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0060.00319.34
8.2.110.0080.00322.02
8.2.100.0030.00917.84
8.2.90.0040.00419.36
8.2.80.0000.00819.66
8.2.70.0000.01017.63
8.2.60.0060.00318.16
8.2.50.0000.00818.07
8.2.40.0000.00818.30
8.2.30.0050.00318.01
8.2.20.0040.00417.82
8.2.10.0030.00517.73
8.2.00.0000.00817.70
8.1.280.0090.00625.92
8.1.270.0030.00523.84
8.1.260.0040.00426.35
8.1.250.0070.00728.09
8.1.240.0120.00923.96
8.1.230.0100.00019.15
8.1.220.0080.00017.76
8.1.210.0080.00018.77
8.1.200.0000.00917.35
8.1.190.0000.00717.39
8.1.180.0060.00318.10
8.1.170.0050.00318.59
8.1.160.0040.00421.94
8.1.150.0040.00418.71
8.1.140.0000.00817.34
8.1.130.0040.00417.78
8.1.120.0000.00717.48
8.1.110.0070.00017.52
8.1.100.0040.00417.48
8.1.90.0000.00717.51
8.1.80.0040.00317.55
8.1.70.0000.00717.44
8.1.60.0000.00817.57
8.1.50.0040.00417.54
8.1.40.0040.00417.42
8.1.30.0000.00817.61
8.1.20.0000.00817.63
8.1.10.0000.00817.46
8.1.00.0000.00717.46
8.0.300.0060.00318.77
8.0.290.0070.00017.18
8.0.280.0030.00518.31
8.0.270.0070.00017.31
8.0.260.0030.00716.85
8.0.250.0030.00616.95
8.0.240.0040.00417.07
8.0.230.0070.00016.91
8.0.220.0040.00416.83
8.0.210.0040.00416.86
8.0.200.0030.00317.03
8.0.190.0040.00417.07
8.0.180.0030.00617.02
8.0.170.0040.00416.88
8.0.160.0030.00616.85
8.0.150.0070.00016.78
8.0.140.0030.00316.89
8.0.130.0080.00013.31
8.0.120.0080.00016.91
8.0.110.0040.00416.96
8.0.100.0000.00716.95
8.0.90.0030.00516.91
8.0.80.0000.01516.91
8.0.70.0000.00716.90
8.0.60.0000.00716.75
8.0.50.0000.00716.99
8.0.30.0090.01217.01
8.0.20.0120.00717.40
8.0.10.0040.00417.06
8.0.00.0170.00316.91
7.4.330.0050.00015.07
7.4.320.0000.00616.60
7.4.300.0040.00416.41
7.4.290.0070.00016.60
7.4.280.0030.00616.42
7.4.270.0030.00316.51
7.4.260.0000.00716.59
7.4.250.0080.00016.49
7.4.240.0060.00216.59
7.4.230.0070.00016.50
7.4.220.0100.00716.64
7.4.210.0030.01116.61
7.4.200.0000.00716.62
7.4.190.0050.00216.49
7.4.160.0140.00316.64
7.4.150.0150.00417.40
7.4.140.0080.01217.86
7.4.130.0120.00616.46
7.4.120.0090.00916.56
7.4.110.0170.00016.38
7.4.100.0150.00316.49
7.4.90.0150.00316.45
7.4.80.0100.00816.46
7.4.70.0060.01216.41
7.4.60.0100.01016.51
7.4.50.0000.00816.59
7.4.40.0030.01322.77
7.4.30.0100.00716.48
7.4.00.0100.00715.08
7.3.330.0000.00513.14
7.3.320.0020.00213.13
7.3.310.0070.00016.35
7.3.300.0030.00316.44
7.3.290.0140.00416.39
7.3.280.0100.00516.44
7.3.270.0000.01817.40
7.3.260.0070.01716.45
7.3.250.0110.00616.36
7.3.240.0120.00416.47
7.3.230.0100.00716.39
7.3.210.0030.01316.60
7.3.200.0060.01219.39
7.3.190.0030.01316.44
7.3.180.0130.00316.30
7.3.170.0120.00316.50
7.3.160.0080.00816.44
7.3.120.0110.00814.84
7.3.110.0090.00914.98
7.3.100.0000.00914.93
7.3.90.0000.01114.64
7.3.80.0080.00814.95
7.3.70.0030.00614.91
7.3.60.0040.00714.91
7.3.50.0120.00314.75
7.3.40.0100.00014.71
7.3.30.0030.00714.70
7.3.20.0140.00016.77
7.3.10.0150.00316.59
7.3.00.0080.00716.58
7.2.330.0040.01316.74
7.2.320.0030.01316.71
7.2.310.0100.00716.48
7.2.300.0000.01616.86
7.2.290.0090.00816.36
7.2.240.0130.00615.10
7.2.230.0030.01315.01
7.2.220.0100.00315.04
7.2.210.0040.01214.99
7.2.200.0060.00915.25
7.2.190.0070.01014.84
7.2.180.0070.00714.85
7.2.170.0040.01114.95
7.2.160.0000.01715.21
7.2.150.0070.00316.77
7.2.140.0000.01416.77
7.2.130.0060.01016.76
7.2.120.0060.00516.80
7.2.110.0030.00916.74
7.2.100.0100.00616.84
7.2.90.0080.00917.02
7.2.80.0070.00716.88
7.2.70.0110.00316.89
7.2.60.0060.00716.81
7.2.50.0060.00916.86
7.2.40.0090.00717.01
7.2.30.0080.00616.78
7.2.20.0060.01316.80
7.2.10.0060.00916.82
7.2.00.0130.00516.87
7.1.330.0100.01015.76
7.1.320.0090.00315.90
7.1.310.0080.00415.56
7.1.300.0060.00715.95
7.1.290.0040.00816.01
7.1.280.0050.00515.74
7.1.270.0060.00915.80
7.1.260.0030.01315.68
7.1.250.0090.00515.48
7.1.200.0060.00315.63
7.1.70.0090.00617.09
7.1.60.0090.01619.82
7.1.50.0040.01916.95
7.1.00.0130.06722.40
7.0.200.0090.00616.74
7.0.140.0000.07022.04
7.0.60.0030.08319.94
7.0.50.0070.08317.84
7.0.40.0030.09320.23
7.0.30.0300.06320.17
7.0.20.0170.04720.20
7.0.10.0230.09720.21
7.0.00.0100.06720.30
5.6.280.0070.08720.82
5.6.210.0130.06320.47
5.6.200.0030.04318.19
5.6.190.0130.06320.27
5.6.180.3000.03720.43
5.6.170.0300.08320.47
5.6.160.0100.05320.52
5.6.150.0030.06318.21
5.6.140.0070.06718.18
5.6.130.0170.06018.12
5.6.120.0070.07321.14
5.6.110.0070.05320.95
5.6.100.0130.05321.00
5.6.90.0070.06020.99
5.6.80.0000.04320.42
5.6.70.4500.04320.38
5.5.350.0030.08320.39
5.5.340.0070.08317.95
5.5.330.0130.07720.40
5.5.320.0300.06720.13
5.5.310.0200.05720.29
5.5.300.0200.06717.87
5.5.290.0070.04317.91
5.5.280.0130.07020.67
5.5.270.0070.08320.88
5.5.260.0170.06720.79
5.5.250.0100.08020.66
5.5.240.0070.06320.28
5.4.450.0430.04319.46
5.4.440.0470.04719.60
5.4.430.0370.04019.09
5.4.420.0370.05019.23
5.4.410.0130.05018.92
5.4.400.0170.04718.61
5.4.390.0130.05018.46
5.4.380.0200.06018.68
5.4.370.0370.05018.82
5.4.360.0330.04318.69
5.4.350.0270.05018.61
5.4.340.0130.06718.56
5.4.320.0090.05012.46
5.4.310.0050.05312.45
5.4.300.0080.03612.46
5.4.290.0070.03712.45
5.4.280.0070.03912.35
5.4.270.0070.04212.35
5.4.260.0060.03912.35
5.4.250.0150.04912.35
5.4.240.0050.03712.35
5.4.230.0040.03912.34
5.4.220.0080.03412.34
5.4.210.0060.03612.34
5.4.200.0040.04712.34
5.4.190.0040.03712.34
5.4.180.0040.03812.34
5.4.170.0130.04412.33
5.4.160.0190.03912.33
5.4.150.0160.04212.32
5.4.140.0230.06412.00
5.4.130.0130.04411.99
5.4.120.0140.04211.95
5.4.110.0150.04211.95
5.4.100.0140.04611.95
5.4.90.0280.09011.95
5.4.80.0140.04311.95
5.4.70.0150.04111.95
5.4.60.0170.03811.94
5.4.50.0110.04411.95
5.4.40.0150.04111.93
5.4.30.0150.04211.93
5.4.20.0120.04511.93
5.4.10.0160.04011.93
5.4.00.0160.04011.42
5.3.290.0050.04012.80
5.3.280.0060.04012.71
5.3.270.0180.04812.72
5.3.260.0240.03612.72
5.3.250.0130.04812.72
5.3.240.0160.04312.72
5.3.230.0180.04312.71
5.3.220.0160.04312.68
5.3.210.0140.04612.68
5.3.200.0120.04812.68
5.3.190.0320.09212.68
5.3.180.0140.04812.67
5.3.170.0130.04612.67
5.3.160.0110.04812.68
5.3.150.0170.04312.67
5.3.140.0180.04012.66
5.3.130.0140.04512.66
5.3.120.0240.06612.66
5.3.110.0120.04912.65
5.3.100.0350.08512.12
5.3.90.0610.05412.08
5.3.80.0150.04512.08
5.3.70.0230.07312.07
5.3.60.0390.07912.06
5.3.50.0150.04312.00
5.3.40.0180.04412.00
5.3.30.0370.08011.95
5.3.20.0360.08211.73
5.3.10.0170.03911.69
5.3.00.0280.07511.67
5.2.170.0110.0369.18
5.2.160.0140.0339.18
5.2.150.0130.0359.18
5.2.140.0300.0799.18
5.2.130.0130.0349.14
5.2.120.0130.0339.14
5.2.110.0310.0779.14
5.2.100.0250.0839.14
5.2.90.0110.0359.14
5.2.80.0280.0819.12
5.2.70.0360.0729.13
5.2.60.0160.0329.09
5.2.50.0200.0889.05
5.2.40.0350.0749.03
5.2.30.0090.0379.00
5.2.20.0310.0769.00
5.2.10.0130.0328.93
5.2.00.0120.0348.79
5.1.60.0260.0738.07
5.1.50.0140.0268.07
5.1.40.0350.0658.05
5.1.30.0380.0648.40
5.1.20.0140.0288.43
5.1.10.0240.0788.15
5.1.00.0310.0708.14
5.0.50.0110.0226.63
5.0.40.0100.0226.48
5.0.30.0250.0796.29
5.0.20.0170.0756.27
5.0.10.0080.0236.25
5.0.00.0160.0886.23
4.4.90.0070.0184.78
4.4.80.0100.0144.76
4.4.70.0200.0364.75
4.4.60.0070.0184.76
4.4.50.0340.0524.77
4.4.40.0070.0304.71
4.4.30.0290.0564.76
4.4.20.0080.0174.84
4.4.10.0150.0364.85
4.4.00.0070.0284.76
4.3.110.0050.0214.66
4.3.100.0260.0424.66
4.3.90.0080.0174.63
4.3.80.0150.0504.58
4.3.70.0040.0214.63
4.3.60.0120.0134.63
4.3.50.0220.0624.63
4.3.40.0080.0264.54
4.3.30.0170.0683.30
4.3.20.0050.0193.28
4.3.10.0040.0193.25
4.3.00.0030.01013.29

preferences:
51.89 ms | 400 KiB | 5 Q