3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits=array("Apple","Mango","Banana"); $arrlength=count($fruits); for($x=0;$x<$arrlength;$x++){ Echo $fruits[$x]; Echo "<br>";} ?>

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.70.0140.00716.25
8.3.60.0090.00918.30
8.3.50.0130.00821.95
8.3.40.0080.00818.83
8.3.30.0000.01418.89
8.3.20.0000.00820.28
8.3.10.0040.00423.65
8.3.00.0000.00719.00
8.2.190.0110.00416.75
8.2.180.0220.00018.41
8.2.170.0040.01118.96
8.2.160.0070.00722.96
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00919.52
8.2.110.0090.00019.14
8.2.100.0120.00017.84
8.2.90.0030.00618.17
8.2.80.0000.01117.97
8.2.70.0060.00318.05
8.2.60.0040.00417.96
8.2.50.0080.00018.10
8.2.40.0000.00719.50
8.2.30.0050.00219.26
8.2.20.0050.00317.67
8.2.10.0060.00318.12
8.2.00.0000.00717.66
8.1.280.0040.01125.92
8.1.270.0060.00318.86
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0030.00622.42
8.1.230.0080.00320.93
8.1.220.0000.00817.77
8.1.210.0080.00018.84
8.1.200.0030.00517.35
8.1.190.0080.00017.23
8.1.180.0000.00918.10
8.1.170.0030.00618.59
8.1.160.0000.00818.87
8.1.150.0040.00418.88
8.1.140.0050.00317.29
8.1.130.0000.00717.84
8.1.120.0070.00017.46
8.1.110.0030.00417.39
8.1.100.0040.00417.34
8.1.90.0050.00217.44
8.1.80.0070.00017.47
8.1.70.0030.00317.41
8.1.60.0030.00517.63
8.1.50.0000.00817.45
8.1.40.0000.00817.39
8.1.30.0080.00017.67
8.1.20.0000.00717.66
8.1.10.0030.00617.58
8.1.00.0020.00517.39
8.0.300.0000.00719.89
8.0.290.0080.00016.63
8.0.280.0000.00718.32
8.0.270.0070.00017.21
8.0.260.0030.00317.13
8.0.250.0030.00316.87
8.0.240.0030.00316.82
8.0.230.0000.00716.90
8.0.220.0050.00316.72
8.0.210.0030.00316.81
8.0.200.0040.00416.93
8.0.190.0030.00316.89
8.0.180.0070.00016.78
8.0.170.0060.00316.80
8.0.160.0000.00717.02
8.0.150.0070.00016.79
8.0.140.0040.00416.75
8.0.130.0030.00313.28
8.0.120.0040.00416.86
8.0.110.0030.00516.85
8.0.100.0040.00416.89
8.0.90.0080.00017.00
8.0.80.0110.00716.88
8.0.70.0000.00816.83
8.0.60.0000.00716.78
8.0.50.0070.00016.75
8.0.30.0090.01116.97
8.0.20.0100.01017.40
8.0.10.0000.00716.95
8.0.00.0080.01016.74
7.4.330.0020.00215.07
7.4.320.0060.00016.39
7.4.300.0020.00516.59
7.4.290.0040.00416.59
7.4.280.0050.00216.57
7.4.270.0030.00316.35
7.4.260.0030.00616.50
7.4.250.0000.00816.55
7.4.240.0040.00416.47
7.4.230.0030.00316.68
7.4.220.0070.01116.51
7.4.210.0030.01416.41
7.4.200.0000.00816.43
7.4.160.0040.01216.54
7.4.150.0090.00917.40
7.4.140.0090.00817.86
7.4.130.0140.00716.64
7.4.120.0070.01016.64
7.4.110.0120.01516.50
7.4.100.0090.00916.46
7.4.90.0140.00316.56
7.4.80.0070.01119.39
7.4.70.0030.01316.49
7.4.60.0070.01016.47
7.4.50.0000.00816.52
7.4.40.0140.00716.67
7.4.30.0030.01416.34
7.4.00.0060.00615.04
7.3.330.0000.00513.20
7.3.320.0030.00313.15
7.3.310.0040.00416.33
7.3.300.0070.00016.05
7.3.290.0040.01316.27
7.3.280.0060.01116.29
7.3.270.0080.01217.40
7.3.260.0040.01416.43
7.3.250.0140.00516.38
7.3.240.0060.01016.54
7.3.230.0090.00916.43
7.3.210.0060.01016.33
7.3.200.0140.00819.39
7.3.190.0180.00316.54
7.3.180.0090.00616.34
7.3.170.0090.00916.32
7.3.160.0060.00916.14
7.2.330.0170.00316.54
7.2.320.0090.00916.42
7.2.310.0060.01216.68
7.2.300.0100.00716.65
7.2.290.0120.00916.66
7.2.60.0090.00316.77
7.2.00.0130.00719.58
7.1.200.0070.01015.94
7.1.100.1000.01016.28
7.1.70.0080.00417.18
7.1.60.0140.00619.22
7.1.50.0070.01517.06
7.1.00.0070.07322.45
7.0.200.0030.00516.82
7.0.140.0030.06721.95
7.0.60.0030.06720.04
7.0.50.0070.08317.80
7.0.40.0100.04320.07
7.0.30.0270.05320.30
7.0.20.0230.07720.09
7.0.10.0170.05020.16
7.0.00.0030.05720.01
5.6.280.0070.06321.06
5.6.210.0130.07320.48
5.6.200.0100.07718.16
5.6.190.0230.05720.57
5.6.180.0200.04020.64
5.6.170.0230.06720.49
5.6.160.0070.04020.49
5.6.150.0070.03718.14
5.6.140.0030.08718.21
5.6.130.0130.05318.11
5.6.120.0100.05721.00
5.6.110.0070.07720.95
5.6.100.0030.04320.95
5.6.90.0230.05321.10
5.6.80.0070.07720.42
5.5.350.0170.07720.52
5.5.340.0070.05717.92
5.5.330.0070.04320.37
5.5.320.0270.08320.29
5.5.310.0230.06720.30
5.5.300.0100.07317.95
5.5.290.0070.07317.92
5.5.280.0130.07720.87
5.5.270.0270.03720.95
5.5.260.0100.08020.94
5.5.250.0230.06720.77
5.5.240.0070.02720.26
5.4.450.0630.06019.45
5.4.440.0100.06019.13
5.4.430.0830.06719.33
5.4.420.1130.06719.55
5.4.410.0930.06319.00
5.4.400.1130.06019.15
5.4.390.1030.05318.91
5.4.380.0170.05318.52
5.4.370.0230.04718.52
5.4.360.0270.06318.61
5.4.350.0170.08018.77
5.4.340.0170.06018.77
5.4.320.0230.06318.49
5.4.310.0330.05318.60
5.4.300.0330.05018.64
5.4.290.0200.06018.64
5.4.280.0200.05318.69
5.4.270.0200.05318.45
5.4.260.0230.05318.72
5.4.250.0230.05018.69
5.4.240.0230.05718.72
5.4.230.0230.05018.51
5.4.220.0270.04318.71
5.4.210.0370.03718.66
5.4.200.0170.05016.40
5.4.190.0170.05318.50
5.4.180.0200.05018.54
5.4.170.0230.06318.68
5.4.160.0100.06018.44
5.4.150.0200.05018.65
5.4.140.0170.05316.27
5.4.130.0270.04016.30
5.4.120.0100.05716.17
5.4.110.0170.05016.22
5.4.100.0200.05016.35
5.4.90.0230.05016.14
5.4.80.0170.04716.20
5.4.70.0200.05716.19
5.4.60.0170.05016.09
5.4.50.0100.06016.06
5.4.40.0200.07016.13
5.4.30.0230.05016.13
5.4.20.0200.05016.27
5.4.10.0230.05016.00
5.4.00.0030.06015.62
5.3.290.0170.05714.66
5.3.280.0170.05314.59
5.3.270.0130.05714.69
5.3.260.0100.05714.68
5.3.250.0270.04014.65
5.3.240.0200.04714.58
5.3.230.0230.04314.52
5.3.220.0300.03714.51
5.3.210.0200.06314.57
5.3.200.0100.05714.55
5.3.190.0270.05314.56
5.3.180.0230.05014.61
5.3.170.0230.04314.54
5.3.160.0130.06314.46
5.3.150.0130.05314.62
5.3.140.0200.04314.46
5.3.130.0270.04314.54
5.3.120.0200.05014.55
5.3.110.0300.04714.64
5.3.100.0170.05014.08
5.3.90.0230.04313.96
5.3.80.0130.05313.96
5.3.70.0130.05014.00
5.3.60.0230.04313.89
5.3.50.0230.04313.91
5.3.40.0200.04713.89
5.3.30.0230.04713.90
5.3.20.0200.04713.79
5.3.10.0130.05013.64
5.3.00.0100.05313.61
5.2.170.0130.04011.28
5.2.160.0100.04311.15
5.2.150.0100.04711.30
5.2.140.0100.04711.07
5.2.130.0200.03311.13
5.2.120.0200.03011.08
5.2.110.0330.02011.06
5.2.100.0070.05011.02
5.2.90.0200.03311.24
5.2.80.0230.03311.01
5.2.70.0130.04311.13
5.2.60.0200.03711.11
5.2.50.0200.03711.05
5.2.40.0100.04010.95
5.2.30.0230.03010.96
5.2.20.0070.04310.88
5.2.10.0230.03310.85
5.2.00.0130.03710.83
5.1.60.0100.03310.11
5.1.50.0170.03710.06
5.1.40.0100.03310.01
5.1.30.0130.03310.34
5.1.20.0130.05010.41
5.1.10.0070.03710.08
5.1.00.0070.04010.18
5.0.50.0030.0308.66
5.0.40.0070.0278.46
5.0.30.0070.0438.21
5.0.20.0100.0338.21
5.0.10.0130.0308.36
5.0.00.0100.0378.34
4.4.90.0130.0206.02
4.4.80.0170.0176.02
4.4.70.0070.0206.02
4.4.60.0030.0236.02
4.4.50.0070.0206.02
4.4.40.0030.0376.02
4.4.30.0070.0236.02
4.4.20.0030.0236.02
4.4.10.0070.0206.02
4.4.00.0070.0336.02
4.3.110.0000.0276.02
4.3.100.0100.0176.02
4.3.90.0030.0236.02
4.3.80.0030.0376.02
4.3.70.0070.0236.02
4.3.60.0070.0236.02
4.3.50.0000.0276.02
4.3.40.0070.0306.02
4.3.30.0030.0236.02
4.3.20.0070.0206.02
4.3.10.0000.0276.02
4.3.00.0000.0237.59

preferences:
37.94 ms | 401 KiB | 5 Q