3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cars=array("Volvo","BMW","Toyota"); $arrlength=count($cars); for($x=0;$x<$arrlength;$x++) { echo $cars[$x]; echo "\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.00718.27
8.3.50.0110.00722.11
8.3.40.0130.00318.50
8.3.30.0130.00318.50
8.3.20.0050.00318.74
8.3.10.0040.00420.61
8.3.00.0110.00017.50
8.2.180.0090.00616.63
8.2.170.0070.00722.96
8.2.160.0070.01022.02
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0040.00419.97
8.2.110.0080.00421.03
8.2.100.0070.00717.91
8.2.90.0040.00419.27
8.2.80.0030.00517.97
8.2.70.0080.00017.73
8.2.60.0050.00318.03
8.2.50.0030.00518.16
8.2.40.0000.00718.03
8.2.30.0080.00019.98
8.2.20.0040.00417.77
8.2.10.0000.00817.79
8.2.00.0030.00617.73
8.1.280.0000.01525.92
8.1.270.0140.00023.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00320.72
8.1.230.0040.00721.02
8.1.220.0050.00318.77
8.1.210.0050.00318.90
8.1.200.0040.00417.13
8.1.190.0060.00317.40
8.1.180.0080.00018.10
8.1.170.0090.00018.75
8.1.160.0000.00718.88
8.1.150.0040.00418.68
8.1.140.0040.00417.36
8.1.130.0030.00317.74
8.1.120.0030.00417.45
8.1.110.0000.00717.48
8.1.100.0000.00717.48
8.1.90.0020.00517.47
8.1.80.0030.00517.44
8.1.70.0040.00417.44
8.1.60.0000.00917.56
8.1.50.0040.00417.45
8.1.40.0040.00417.42
8.1.30.0080.00017.69
8.1.20.0050.00317.62
8.1.10.0000.00717.53
8.1.00.0040.00417.36
8.0.300.0060.00319.86
8.0.290.0000.00716.75
8.0.280.0000.00718.31
8.0.270.0000.00717.20
8.0.260.0000.00716.82
8.0.250.0000.00716.96
8.0.240.0050.00516.83
8.0.230.0040.00416.85
8.0.220.0070.00016.91
8.0.210.0060.00016.73
8.0.200.0040.00416.86
8.0.190.0030.00316.80
8.0.180.0050.00216.73
8.0.170.0040.00416.82
8.0.160.0070.00016.81
8.0.150.0060.00316.81
8.0.140.0050.00316.89
8.0.130.0000.00613.30
8.0.120.0030.00616.79
8.0.110.0000.00816.90
8.0.100.0040.00416.71
8.0.90.0040.00416.93
8.0.80.0000.01516.93
8.0.70.0040.00416.82
8.0.60.0030.00616.87
8.0.50.0000.00816.75
8.0.30.0110.00817.10
8.0.20.0080.01117.40
8.0.10.0050.00316.96
8.0.00.0080.01016.68
7.4.330.0060.00014.78
7.4.320.0060.00016.50
7.4.300.0030.00316.59
7.4.290.0030.00316.55
7.4.280.0040.00416.64
7.4.270.0080.00016.41
7.4.260.0000.00513.33
7.4.250.0040.00416.55
7.4.240.0030.00316.64
7.4.230.0030.00316.45
7.4.220.0150.00316.59
7.4.210.0060.00816.63
7.4.200.0000.00716.38
7.4.190.0000.00716.75
7.4.160.0140.00316.44
7.4.150.0030.01617.40
7.4.140.0060.01117.10
7.4.130.0200.00416.44
7.4.120.0120.00516.45
7.4.110.0040.01416.71
7.4.100.0090.00916.35
7.4.90.0130.00616.64
7.4.80.0000.01719.03
7.4.70.0100.01316.54
7.4.60.0150.00316.58
7.4.50.0000.00416.30
7.4.40.0070.01022.27
7.4.30.0070.01016.30
7.4.00.0100.00315.17
7.3.330.0000.00513.18
7.3.320.0060.00013.03
7.3.310.0000.00616.12
7.3.300.0000.00716.21
7.3.290.0120.00316.18
7.3.280.0120.00616.26
7.3.270.0060.01117.40
7.3.260.0130.01118.24
7.3.250.0120.00816.32
7.3.240.0130.00316.50
7.3.230.0170.00316.39
7.3.210.0070.01016.31
7.3.200.0060.01119.39
7.3.190.0110.00616.33
7.3.180.0120.00316.43
7.3.170.0100.01016.33
7.3.160.0150.00016.49
7.3.120.0120.00414.98
7.3.10.0100.00616.45
7.3.00.0030.01216.47
7.2.330.0040.01416.50
7.2.320.0080.01316.52
7.2.310.0200.00016.79
7.2.300.0090.00616.62
7.2.290.0110.00516.66
7.2.130.0060.01017.06
7.2.120.0060.00917.02
7.2.110.0060.00916.91
7.2.100.0040.00716.52
7.2.90.0030.00916.78
7.2.80.0040.01117.00
7.2.70.0030.00916.92
7.2.60.0080.00316.61
7.2.50.0060.00916.71
7.2.40.0100.01016.80
7.2.30.0060.01316.68
7.2.20.0030.01016.74
7.2.10.0070.01016.92
7.2.00.0070.00718.37
7.1.250.0050.00515.62
7.1.100.0080.00418.25
7.1.70.0050.00217.15
7.1.60.0100.01419.40
7.1.50.0030.01616.65
7.1.00.0030.06722.47
7.0.200.0250.00316.70
7.0.140.0030.03321.96
7.0.60.0070.07719.88
7.0.50.0070.09017.89
7.0.40.0100.04317.73
7.0.30.0070.04317.74
7.0.20.0070.04717.78
7.0.10.0070.08017.79
7.0.00.0070.07017.64
5.6.280.0030.07320.92
5.6.210.0000.04320.73
5.6.200.0070.06718.11
5.6.190.0130.06718.09
5.6.180.0170.07318.18
5.6.170.0070.08018.11
5.6.160.0070.06318.18
5.6.150.0100.08018.18
5.6.140.0030.08718.11
5.6.130.0100.06318.09
5.6.120.0100.03718.22
5.6.110.0070.04318.15
5.6.100.0130.04718.18
5.6.90.0130.08018.07
5.6.80.0030.05017.51
5.6.70.0100.07717.50
5.6.60.0100.06717.49
5.6.50.0070.06317.55
5.6.40.0000.08317.52
5.6.30.0070.06017.58
5.6.20.0100.06017.43
5.6.10.0070.04017.53
5.6.00.0070.04017.43
5.5.350.4100.04020.40
5.5.340.0130.07717.98
5.5.330.0170.07017.98
5.5.320.0070.08018.02
5.5.310.0070.08317.91
5.5.300.0030.06017.91
5.5.290.0030.05318.02
5.5.280.0000.07718.04
5.5.270.0070.06317.86
5.5.260.0030.08318.00
5.5.250.0100.07017.73
5.5.240.0100.07017.36
5.5.230.0070.08017.36
5.5.220.0000.08317.30
5.5.210.0030.08717.29
5.5.200.0170.07017.27
5.5.190.0070.04317.36
5.5.180.0070.05717.36
5.5.160.0070.04717.26
5.5.150.0030.07317.26
5.5.140.0070.07017.29
5.5.130.0100.07317.25
5.5.120.0030.08017.30
5.5.110.0000.08317.29
5.5.100.0070.06717.17
5.5.90.0070.04317.16
5.5.80.0030.04017.26
5.5.70.0030.06017.25
5.5.60.0030.03717.17
5.5.50.0030.07717.25
5.5.40.0170.07017.20
5.5.30.0200.06317.22
5.5.20.0070.07717.16
5.5.10.0030.07317.21
5.5.00.0000.07717.22
5.4.450.0030.06319.36
5.4.440.0100.08319.31
5.4.430.0130.04719.45
5.4.420.0030.08019.31
5.4.410.0030.08019.18
5.4.400.0070.06718.96
5.4.390.0070.08019.21
5.4.380.0130.06019.20
5.4.370.0070.03718.99
5.4.360.0130.07318.98
5.4.350.0130.07319.13
5.4.340.0070.05019.11
5.4.320.0070.04019.10
5.4.310.0200.02319.03
5.4.300.0100.07319.12
5.4.290.0070.07319.09
5.4.280.0070.07719.07
5.4.270.0030.07319.09
5.4.260.0070.08019.20
5.4.250.0030.07719.10
5.4.240.0100.07719.20
5.4.230.0100.06718.98
5.4.220.0170.06018.96
5.4.210.0070.03719.03
5.4.200.0100.05719.20
5.4.190.0200.06719.02
5.4.180.0070.07319.00
5.4.170.0100.07318.94
5.4.160.0070.07718.96
5.4.150.0100.06019.07
5.4.140.0070.07716.31
5.4.130.0070.03716.27
5.4.120.0130.06716.24
5.4.110.0030.05016.25
5.4.100.0170.02316.41
5.4.90.0030.03316.28
5.4.80.0070.03016.39
5.4.70.0030.03716.55
5.4.60.0070.03316.16
5.4.50.0000.03716.27
5.4.40.0030.03316.29
5.4.30.0000.03716.51
5.4.20.0000.03716.33
5.4.10.0070.03016.14
5.4.00.0030.03315.68
5.3.290.0200.06714.63
5.3.280.0070.06314.51
5.3.270.0030.07714.38
5.3.260.0070.07714.57
5.3.250.0070.07014.57
5.3.240.0000.05714.59
5.3.230.0030.03714.58
5.3.220.0070.07314.54
5.3.210.0030.04714.53
5.3.200.0000.04014.53
5.3.190.0000.04314.55
5.3.180.0070.03314.38
5.3.170.0000.04014.53
5.3.160.0030.03714.48
5.3.150.0000.07314.39
5.3.140.0100.03014.41
5.3.130.0030.03714.50
5.3.120.0030.03714.40
5.3.110.0000.04014.51
5.3.100.0070.03013.95
5.3.90.0030.03313.87
5.3.80.0000.03713.77
5.3.70.0000.03713.97
5.3.60.0030.03313.97
5.3.50.0030.03313.90
5.3.40.0070.03313.88
5.3.30.0000.03713.85
5.3.20.0030.03313.66
5.3.10.0000.03713.60
5.3.00.0000.03713.55
5.2.170.0070.02311.11
5.2.160.0000.03711.06
5.2.150.0030.02711.17
5.2.140.0000.03311.12
5.2.130.0030.03011.11
5.2.120.0000.03311.07
5.2.110.0000.03011.24
5.2.100.0070.02311.02
5.2.90.0030.02711.12
5.2.80.0030.02711.05
5.2.70.0000.03011.23
5.2.60.0000.03011.01
5.2.50.0000.03010.94
5.2.40.0000.03010.77
5.2.30.0030.02710.97
5.2.20.0070.02311.09
5.2.10.0030.02710.89
5.2.00.0070.03310.77
5.1.60.0000.02310.06
5.1.50.0000.02710.06
5.1.40.0030.0279.91
5.1.30.0070.05310.36
5.1.20.0030.06010.24
5.1.10.0130.03710.14
5.1.00.0030.03010.05
5.0.50.0000.0378.57
5.0.40.0070.0238.43
5.0.30.0030.0638.20
5.0.20.0030.0278.26
5.0.10.0000.0238.23
5.0.00.0000.0678.13
4.4.90.0030.0137.71
4.4.80.0030.0107.71
4.4.70.0030.0137.71
4.4.60.0000.0177.71
4.4.50.0000.0207.71
4.4.40.0000.0237.71
4.4.30.0000.0177.71
4.4.20.0030.0377.71
4.4.10.0000.0377.71
4.4.00.0100.0507.71
4.3.110.0000.0407.71
4.3.100.0030.0307.71
4.3.90.0070.0337.71
4.3.80.0000.0307.71
4.3.70.0000.0207.71
4.3.60.0070.0307.71
4.3.50.0030.0137.71
4.3.40.0030.0237.71
4.3.30.0070.0307.71
4.3.20.0000.0307.71
4.3.10.0000.0377.71
4.3.00.0000.0307.71

preferences:
44.12 ms | 401 KiB | 5 Q