3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a() { return; } function b() { return false; } $start = microtime(true); for ($i = 0; $i<999999; $i++) { b(); } $end = microtime(true); echo "B :".($end-$start)."\n"; $start = microtime(true); for ($i = 0; $i<999999; $i++) { a(); } $end = microtime(true); echo "A :".($end-$start)."\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)
7.3.120.0040.04614.91
7.3.110.0030.06014.79
7.3.100.0030.03914.60
7.3.90.0030.04714.60
7.3.80.0100.03514.81
7.3.70.0130.03615.00
7.3.60.0070.04114.66
7.3.50.0030.04314.80
7.3.40.0030.06214.86
7.3.30.0000.05214.75
7.3.20.0070.04316.80
7.3.10.0100.04216.84
7.3.00.0030.03816.78
7.2.240.0130.05915.21
7.2.230.0030.05115.17
7.2.220.0000.04715.15
7.2.210.0030.05014.96
7.2.200.0030.04615.19
7.2.190.0030.05114.83
7.2.180.0030.05215.04
7.2.170.0070.05014.89
7.2.160.0000.04615.05
7.2.150.0070.04916.69
7.2.140.0070.05116.86
7.2.130.0060.04817.01
7.2.120.0030.05616.83
7.2.110.0030.04916.93
7.2.100.0060.04816.96
7.2.90.0030.04816.89
7.2.80.0000.05516.84
7.2.70.0030.04616.49
7.2.60.0000.05216.91
7.2.50.0060.05116.95
7.2.40.0070.04316.73
7.2.30.0100.04216.99
7.2.20.0100.04516.95
7.2.10.0030.04816.72
7.2.00.0030.04918.12
7.1.330.0070.13015.63
7.1.320.0070.12815.71
7.1.310.0100.12315.73
7.1.300.0030.13915.54
7.1.290.0000.15115.93
7.1.280.0100.13615.86
7.1.270.0070.12715.63
7.1.260.0030.13015.73
7.1.250.0070.13615.77
7.1.70.0030.04517.14
7.1.60.0100.09319.40
7.1.50.0170.08117.07
7.1.00.0070.08022.44
7.0.200.0060.05116.49
7.0.140.0030.13322.08
7.0.70.0070.11321.57
7.0.60.0070.13721.68
7.0.50.0070.14022.13
7.0.40.0070.10720.09
7.0.30.0030.13320.13
7.0.20.0030.14019.99
7.0.10.0030.13720.11
7.0.00.0000.12719.95
5.6.280.0030.24720.89
5.6.220.0000.21720.61
5.6.210.0030.21720.56
5.6.200.0000.22021.01
5.6.190.0000.17321.08
5.6.180.0000.22721.17
5.6.170.0030.21320.96
5.6.160.0100.21021.04
5.6.150.0000.19720.95
5.6.140.0000.15321.04
5.6.130.0070.24021.04
5.6.120.0030.20321.11
5.6.110.0000.15721.04
5.6.100.0070.19321.02
5.6.90.0000.20021.09
5.6.80.0000.22020.43
5.6.70.0070.20720.38
5.6.60.0030.21320.45
5.6.50.0000.21320.42
5.6.40.0100.20720.38
5.6.30.0070.22020.49
5.6.20.0100.15320.29
5.6.10.0030.19320.38
5.6.00.0000.21320.29
5.5.360.0100.20320.43
5.5.350.0000.21020.34
5.5.340.0100.19320.86
5.5.330.0000.18320.78
5.5.320.0000.21720.92
5.5.310.0070.22020.92
5.5.300.0070.20720.79
5.5.290.0030.21320.91
5.5.280.0030.20020.87
5.5.270.0030.15720.77
5.5.260.0070.28720.91
5.5.250.0000.15720.59
5.5.240.0000.20320.02
5.5.230.0030.19720.02
5.5.220.0000.19320.27
5.5.210.0000.16719.98
5.5.200.0000.21320.14
5.5.190.0030.15719.98
5.5.180.0070.14720.19
5.5.160.0030.21320.18
5.5.150.0030.20320.20
5.5.140.0000.21720.07
5.5.130.0100.21020.09
5.5.120.0000.17320.08
5.5.110.0070.18720.20
5.5.100.0000.16020.08
5.5.90.0100.21020.07
5.5.80.0000.19020.06
5.5.70.0000.18020.00
5.5.60.0100.15020.14
5.5.50.0030.21720.08
5.5.40.0070.20320.10
5.5.30.0100.20320.14
5.5.20.0000.21320.05
5.5.10.0070.20320.07
5.5.00.0070.21720.00
5.4.450.0000.16719.18
5.4.440.0070.26719.42
5.4.430.0000.29019.34
5.4.420.0000.14719.52
5.4.410.0030.16719.30
5.4.400.0000.21318.97
5.4.390.0070.21019.02
5.4.380.0070.20719.11
5.4.370.0070.15019.16
5.4.360.0100.18719.09
5.4.350.0030.18719.09
5.4.340.0030.16719.09
5.4.320.0070.21319.12
5.4.310.0100.19319.11
5.4.300.0030.18719.02
5.4.290.0100.20019.04
5.4.280.0000.20719.16
5.4.270.0000.21319.18
5.4.260.0000.19719.12
5.4.250.0030.20718.84
5.4.240.0100.14019.11
5.4.230.0000.15719.00
5.4.220.0070.20719.01
5.4.210.0030.21018.92
5.4.200.0030.17019.20
5.4.190.0070.17019.06
5.4.180.0000.18719.20
5.4.170.0100.16019.20
5.4.160.0000.21719.16
5.4.150.0030.21719.08
5.4.140.0100.21016.46
5.4.130.0030.20716.49
5.4.120.0030.20316.19
5.4.110.0030.20716.31
5.4.100.0030.15316.44
5.4.90.0070.19716.51
5.4.80.0070.16016.51
5.4.70.0030.21316.54
5.4.60.0030.21316.36
5.4.50.0000.14716.47
5.4.40.0000.13316.48
5.4.30.0000.15316.39
5.4.20.0030.11316.30
5.4.10.0000.12016.37
5.4.00.0000.16715.89
5.3.290.0000.31714.77
5.3.280.0030.32714.66
5.3.270.0070.33314.67
5.3.260.0030.32014.75
5.3.250.0000.29314.75
5.3.240.0030.33014.57
5.3.230.0070.33014.71
5.3.220.0030.32014.59
5.3.210.0030.33714.69
5.3.200.0000.33714.55
5.3.190.0070.34714.59
5.3.180.0000.34314.58
5.3.170.0030.30314.50
5.3.160.0000.31314.66
5.3.150.0000.28314.62
5.3.140.0030.25314.67
5.3.130.0030.24014.56
5.3.120.0000.23714.56
5.3.110.0000.30314.55
5.3.100.0000.39314.10
5.3.90.0000.22313.97
5.3.80.0000.22314.14
5.3.70.0000.23314.08
5.3.60.0030.24014.06
5.3.50.0030.22313.84
5.3.40.0000.25714.03
5.3.30.0070.25013.97
5.3.20.0030.33013.76
5.3.10.0000.28313.58
5.3.00.0000.34013.54
5.2.170.0000.26311.00
5.2.160.0000.26311.04
5.2.150.0130.26311.03
5.2.140.0000.35711.20
5.2.130.0030.35011.11
5.2.120.0000.39710.99
5.2.110.0000.33311.03
5.2.100.0070.38011.22
5.2.90.0000.39710.96
5.2.80.0030.39711.14
5.2.70.0000.38711.23
5.2.60.0030.37311.14
5.2.50.0030.37011.09
5.2.40.0070.32311.06
5.2.30.0000.31711.00
5.2.20.0030.36710.86
5.2.10.0030.38710.93
5.2.00.0030.38310.71
5.1.60.0200.37710.43
5.1.50.0000.34710.43
5.1.40.0030.34310.43
5.1.30.0000.34710.43
5.1.20.0000.43310.43
5.1.10.0000.45010.43
5.1.00.0000.46310.43
5.0.50.0170.52710.43
5.0.40.0000.54310.43
5.0.30.0000.51010.43
5.0.20.0000.54310.43
5.0.10.0000.52010.43
5.0.00.0030.53710.43
4.4.90.0030.52010.43
4.4.80.0030.51010.43
4.4.70.0000.51710.43
4.4.60.0030.50310.43
4.4.50.0000.51710.43
4.4.40.0000.51010.43
4.4.30.0000.54710.43
4.4.20.0000.48010.43
4.4.10.0000.51010.43
4.4.00.0030.52010.43
4.3.110.0030.51710.43
4.3.100.0030.50010.43
4.3.90.0000.47710.43
4.3.80.0000.48710.43
4.3.70.0000.47710.43
4.3.60.0030.49310.43
4.3.50.0000.44010.43
4.3.40.0000.39310.43
4.3.30.0030.49710.43
4.3.20.0000.36310.43
4.3.10.0030.42310.43
4.3.00.0000.52010.43

preferences:
36.95 ms | 401 KiB | 5 Q