3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php $a = array( "a"=>"red", "b"=>"green", "c"=>"blue", "d"=>"yellow", "e"=>"brown", ); print_r(array_slice($a,0,5)); ?> </body> </html>

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.40.0070.00718.63
8.3.30.0070.00718.79
8.3.20.0070.00020.21
8.3.10.0040.00420.43
8.3.00.0040.00419.38
8.2.170.0140.00722.96
8.2.160.0060.00820.27
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00422.10
8.2.110.0060.00320.52
8.2.100.0040.00817.78
8.2.90.0050.00319.23
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0000.00817.80
8.2.50.0040.00418.10
8.2.40.0000.00818.09
8.2.30.0060.00317.88
8.2.20.0060.00317.67
8.2.10.0030.00517.86
8.2.00.0040.00417.54
8.1.270.0000.00822.18
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0130.00323.87
8.1.230.0110.00017.70
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.13
8.1.190.0040.00417.11
8.1.180.0030.00518.10
8.1.170.0040.00418.50
8.1.160.0050.00221.95
8.1.150.0000.00718.73
8.1.140.0070.00017.38
8.1.130.0070.00017.68
8.1.120.0000.00717.26
8.1.110.0030.00617.23
8.1.100.0050.00317.43
8.1.90.0000.00917.41
8.1.80.0070.00017.44
8.1.70.0030.00317.34
8.1.60.0000.00817.41
8.1.50.0060.00317.37
8.1.40.0050.00317.41
8.1.30.0000.00817.57
8.1.20.0000.00817.63
8.1.10.0040.00417.36
8.1.00.0040.00417.40
8.0.300.0080.00018.77
8.0.290.0080.00016.58
8.0.280.0000.00718.37
8.0.270.0000.00717.16
8.0.260.0060.00017.20
8.0.250.0000.00716.77
8.0.240.0070.00016.94
8.0.230.0040.00416.84
8.0.220.0070.00016.67
8.0.210.0050.00316.84
8.0.200.0030.00316.74
8.0.190.0000.00716.88
8.0.180.0050.00516.84
8.0.170.0030.00616.82
8.0.160.0070.00016.81
8.0.150.0030.00316.83
8.0.140.0000.00716.79
8.0.130.0000.00613.25
8.0.120.0040.00416.73
8.0.110.0040.00416.81
8.0.100.0040.00416.67
8.0.90.0040.00416.81
8.0.80.0110.00716.81
8.0.70.0040.00416.85
8.0.60.0080.00016.79
8.0.50.0030.00516.79
8.0.30.0100.00817.09
8.0.20.0110.01117.40
8.0.10.0070.00016.77
8.0.00.0100.01216.68
7.4.330.0000.00515.00
7.4.320.0000.00616.44
7.4.300.0000.00616.51
7.4.290.0070.00016.42
7.4.280.0080.00016.51
7.4.270.0030.00316.43
7.4.260.0030.00316.52
7.4.250.0070.00016.38
7.4.240.0050.00216.49
7.4.230.0000.00716.23
7.4.220.0090.01316.50
7.4.210.0110.00316.63
7.4.200.0070.00016.39
7.4.160.0140.00616.43
7.4.150.0190.00617.40
7.4.140.0130.00517.86
7.4.130.0110.00816.26
7.4.120.0070.01016.33
7.4.110.0110.00516.31
7.4.100.0100.01416.50
7.4.90.0110.00816.31
7.4.80.0120.00419.37
7.4.70.0090.00616.41
7.4.60.0090.00916.52
7.4.50.0050.00016.62
7.4.40.0030.01416.50
7.4.30.0130.01016.43
7.4.00.0080.01014.97
7.3.330.0050.00012.97
7.3.320.0000.00712.98
7.3.310.0000.00716.19
7.3.300.0000.00616.14
7.3.290.0060.01016.16
7.3.280.0110.00716.19
7.3.270.0060.01217.40
7.3.260.0090.00916.49
7.3.250.0080.01016.26
7.3.240.0130.00316.22
7.3.230.0130.00316.39
7.3.210.0090.00916.26
7.3.200.0130.00619.39
7.3.190.0100.00716.51
7.3.180.0120.00816.36
7.3.170.0120.00916.27
7.3.160.0090.00916.13
7.3.120.0060.01214.88
7.3.110.0100.00714.58
7.3.100.0000.01414.28
7.3.90.0000.01314.48
7.3.80.0030.00614.56
7.3.70.0070.00714.86
7.3.60.0100.00314.62
7.3.50.0060.00614.63
7.3.40.0040.00414.44
7.3.30.0060.00914.78
7.3.20.0000.01016.52
7.3.10.0080.00616.37
7.3.00.0080.00516.21
7.2.330.0140.00716.50
7.2.320.0170.00416.30
7.2.310.0100.01016.65
7.2.300.0060.01416.60
7.2.290.0040.01116.61
7.2.250.0030.01314.87
7.2.240.0130.00714.87
7.2.230.0040.01114.98
7.2.220.0090.00314.94
7.2.210.0000.01014.83
7.2.200.0000.01014.74
7.2.190.0070.00714.68
7.2.180.0030.00915.07
7.2.170.0100.00314.95
7.2.130.0060.00616.35
7.2.120.0120.00416.76
7.2.110.0170.00315.84
7.2.100.0150.00316.20
7.2.90.0130.00016.32
7.2.80.0140.00316.25
7.2.70.0120.00616.31
7.2.60.0120.00616.66
7.2.50.0060.00616.28
7.2.40.0110.00816.41
7.2.30.0090.00916.36
7.2.20.0140.00416.05
7.2.10.0130.00316.37
7.2.00.0070.00917.73
7.1.330.0000.01515.85
7.1.320.0070.00715.58
7.1.310.0040.01115.44
7.1.300.0070.00715.72
7.1.290.0070.00315.65
7.1.280.0030.00615.50
7.1.270.0030.00615.52
7.1.260.0000.00815.55
7.1.250.0090.00915.68
7.1.200.0030.01015.55
7.1.100.0000.01117.83
7.1.70.0000.01016.74
7.1.60.0030.00717.09
7.1.50.0070.01416.82
7.1.00.0070.07322.54
7.0.200.0030.00916.68
7.0.140.0030.06722.00
7.0.60.0100.06719.95
7.0.50.0100.08017.80
7.0.40.0030.04720.30
7.0.30.0530.06320.14
7.0.20.0270.03320.11
7.0.10.0100.08320.09
7.0.00.0030.04320.16
5.6.280.0030.07021.02
5.6.210.0130.07320.62
5.6.200.0070.03718.09
5.6.190.0100.07320.61
5.6.180.0270.06020.43
5.6.170.0330.07320.51
5.6.160.0100.05720.72
5.6.150.0030.08318.20
5.6.140.0000.08318.07
5.6.130.0070.07718.11
5.6.120.0030.04720.85
5.6.110.0000.07020.98
5.6.100.0030.04721.13
5.6.90.0070.09320.96
5.6.80.0130.07320.47
5.5.350.0130.09020.30
5.5.340.0000.04717.92
5.5.330.0170.07320.06
5.5.320.0400.06020.41
5.5.310.0230.06320.13
5.5.300.0070.08017.97
5.5.290.0100.03717.91
5.5.280.0030.04320.68
5.5.270.0130.04320.82
5.5.260.0100.08320.76
5.5.250.0030.04320.70
5.5.240.0300.07020.04
5.4.450.1600.05019.18
5.4.440.0930.06719.49
5.4.430.0800.04719.46
5.4.420.0630.00019.63
5.4.410.0630.00019.34
5.4.400.0630.00019.05
5.4.390.0600.00018.96
5.4.380.0670.00019.05
5.4.370.0600.00019.25
5.4.360.0630.00019.07
5.4.350.0630.00019.05
5.4.340.0630.00019.05
5.4.320.0040.03812.45
5.4.310.0080.03612.45
5.4.300.0070.03512.45
5.4.290.0040.03912.45
5.4.280.0050.03612.35
5.4.270.0040.03812.35
5.4.260.0070.03612.35
5.4.250.0040.03812.35
5.4.240.0070.03412.35
5.4.230.0060.03612.34
5.4.220.0040.03712.34
5.4.210.0060.03512.34
5.4.200.0050.05312.34
5.4.190.0120.04012.34
5.4.180.0050.03712.34
5.4.170.0030.03812.35
5.4.160.0030.03912.35
5.4.150.0040.03712.34
5.4.140.0090.04012.02
5.4.130.0060.03512.01
5.4.120.0060.03611.97
5.4.110.0050.03611.97
5.4.100.0100.03311.96
5.4.90.0060.04411.96
5.4.80.0060.03711.96
5.4.70.0080.03211.96
5.4.60.0060.03511.96
5.4.50.0040.04111.96
5.4.40.0060.03511.95
5.4.30.0080.03911.95
5.4.20.0050.03611.95
5.4.10.0050.03811.95
5.4.00.0050.03611.44
5.3.290.0080.03712.80
5.3.280.0060.03612.71
5.3.270.0070.03712.73
5.3.260.0050.04012.71
5.3.250.0060.04612.71
5.3.240.0080.03512.72
5.3.230.0040.04012.71
5.3.220.0110.03812.68
5.3.210.0080.05012.68
5.3.200.0100.03712.68
5.3.190.0060.05012.68
5.3.180.0070.04012.68
5.3.170.0080.03512.67
5.3.160.0080.03612.68
5.3.150.0090.05012.67
5.3.140.0140.04712.66
5.3.130.0080.05812.65
5.3.120.0100.03612.66
5.3.110.0070.03912.66
5.3.100.0060.03812.11
5.3.90.0060.03612.09
5.3.80.0060.03712.07
5.3.70.0040.04012.07
5.3.60.0060.03812.07
5.3.50.0080.03612.00
5.3.40.0040.04112.00
5.3.30.0080.03311.95
5.3.20.0080.03411.73
5.3.10.0050.03611.69
5.3.00.0110.03111.68
5.2.170.0060.0369.18
5.2.160.0070.0379.18
5.2.150.0100.0369.18
5.2.140.0040.0349.18
5.2.130.0050.0409.13
5.2.120.0060.0309.13
5.2.110.0110.0309.14
5.2.100.0080.0259.14
5.2.90.0040.0309.14
5.2.80.0060.0299.14
5.2.70.0050.0329.14
5.2.60.0080.0379.09
5.2.50.0060.0299.05
5.2.40.0050.0289.03
5.2.30.0080.0269.01
5.2.20.0040.0309.00
5.2.10.0030.0318.92
5.2.00.0020.0348.78
5.1.60.0040.0348.06
5.1.50.0040.0288.05
5.1.40.0070.0278.04
5.1.30.0090.0318.39
5.1.20.0090.0248.41
5.1.10.0050.0268.13
5.1.00.0060.0258.14
5.0.50.0050.0196.61
5.0.40.0040.0206.47
5.0.30.0050.0316.29
5.0.20.0040.0206.26
5.0.10.0040.0206.23
5.0.00.0050.0296.23
4.4.90.0050.0144.78
4.4.80.0060.0134.75
4.4.70.0040.0284.75
4.4.60.0040.0154.75
4.4.50.0030.0154.77
4.4.40.0040.0264.71
4.4.30.0020.0164.76
4.4.20.0040.0154.84
4.4.10.0020.0164.85
4.4.00.0010.0274.76
4.3.110.0010.0184.67
4.3.100.0040.0144.66
4.3.90.0060.0184.63
4.3.80.0090.0324.58
4.3.70.0050.0184.63
4.3.60.0030.0224.63
4.3.50.0060.0214.63
4.3.40.0010.0334.54
4.3.30.0020.0163.28
4.3.20.0040.0203.26
4.3.10.0030.0233.22
4.3.00.0130.01313.28

preferences:
41.42 ms | 400 KiB | 5 Q