3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $a = 5; $start = microtime(true); for ($i = 0; $i < 100000; $i++) { if ($a) { } } $stop = microtime(true); $diff = $stop - $start; var_dump($diff); $a = 5; $start = microtime(true); for ($j = 0; $j < 100000; $j++) { if ($a != 0) { } } $stop = microtime(true); $diff = $stop - $start; var_dump($diff);

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.1.70.0040.00817.28
7.1.60.0100.02019.40
7.1.50.0070.02117.04
7.1.00.0030.05322.54
7.0.200.0060.00616.31
7.0.140.0100.07322.07
7.0.120.0030.08022.06
7.0.60.0100.07719.96
7.0.50.0000.05717.91
7.0.40.0130.08319.96
7.0.30.0370.04720.33
7.0.20.0300.08020.21
7.0.10.0130.08020.16
7.0.00.0000.05020.17
5.6.280.0070.08321.09
5.6.210.0230.07720.75
5.6.200.0170.08018.16
5.6.190.0030.08320.45
5.6.180.4030.04720.43
5.6.170.0170.09720.54
5.6.160.0030.05320.55
5.6.150.0070.05318.07
5.6.140.0200.03018.11
5.6.130.0070.06018.09
5.6.120.0070.07021.09
5.6.110.0100.09321.11
5.6.100.0100.09321.07
5.6.90.0200.08321.12
5.6.80.0070.04720.56
5.6.70.4600.05020.39
5.5.350.0170.07020.49
5.5.340.0070.06317.89
5.5.330.0070.04320.16
5.5.320.0230.04020.27
5.5.310.0370.08320.27
5.5.300.0030.09017.98
5.5.290.0030.04317.87
5.5.280.0130.04020.76
5.5.270.0030.05020.88
5.5.260.0230.08320.79
5.5.250.0030.09320.61
5.5.240.0270.08020.12
5.4.450.0070.09319.13
5.4.440.0070.09319.13
5.4.430.0100.08319.47
5.4.420.0170.07019.43
5.4.410.0000.08719.31
5.4.400.0100.08019.12
5.4.390.0100.08319.14
5.4.380.0130.07719.11
5.4.370.0130.06319.10
5.4.360.0100.05319.14
5.4.350.0130.08018.79
5.4.340.0030.06019.00
5.4.320.0070.09019.12
5.4.310.0100.06019.00
5.4.300.0030.06319.14
5.4.290.0030.07719.18
5.4.280.0130.08019.00
5.4.270.0070.05319.11
5.4.260.0000.04718.79
5.4.250.0100.08319.17
5.4.240.0100.08318.93
5.4.230.0030.09318.91
5.4.220.0100.07719.07
5.4.210.0100.07319.07
5.4.200.0070.07719.17
5.4.190.0100.08019.16
5.4.180.0100.08018.79
5.4.170.0130.06719.13
5.4.160.0100.04018.77
5.4.150.0070.08319.12
5.4.140.0000.05316.25
5.4.130.0070.07316.33
5.4.120.0070.08016.18
5.4.110.0130.08016.34
5.4.100.0030.05016.60
5.4.90.0070.05316.39
5.4.80.0100.08016.26
5.4.70.0100.08016.23
5.4.60.0000.06016.25
5.4.50.0070.07316.26
5.4.40.0030.08716.34
5.4.30.0030.04316.25
5.4.20.0030.06316.27
5.4.10.0100.05016.40
5.4.00.0030.09315.66
5.3.290.0000.09314.59
5.3.280.0100.07314.52
5.3.270.0030.08314.57
5.3.260.0100.08314.42
5.3.250.0000.06314.57
5.3.240.0030.09314.62
5.3.230.0000.07714.52
5.3.220.0070.09014.50
5.3.210.0130.08714.50
5.3.200.0070.04714.51
5.3.190.0030.09714.46
5.3.180.0130.08314.48
5.3.170.0070.08314.38
5.3.160.0100.08714.52
5.3.150.0030.09714.65
5.3.140.0100.06314.57
5.3.130.0030.07014.49
5.3.120.0070.08314.36
5.3.110.0030.08014.47
5.3.100.0030.09313.86
5.3.90.0130.08013.96
5.3.80.0100.08313.95
5.3.70.0000.09013.84
5.3.60.0000.08313.93
5.3.50.0130.08313.76
5.3.40.0000.06713.88
5.3.30.0100.08013.85
5.3.20.0030.08713.66
5.3.10.0130.07013.48
5.3.00.0070.08713.72
5.2.170.0030.08011.07
5.2.160.0030.07311.13
5.2.150.0130.07010.96
5.2.140.0000.08710.99
5.2.130.0030.05711.04
5.2.120.0030.08011.19
5.2.110.0030.08011.11
5.2.100.0070.06310.98
5.2.90.0030.06311.00
5.2.80.0000.04311.10
5.2.70.0000.04711.04
5.2.60.0100.04010.97
5.2.50.0030.04010.95
5.2.40.0000.04010.91
5.2.30.0000.04010.86
5.2.20.0070.03310.80
5.2.10.0000.04010.76
5.2.00.0070.03310.59
5.1.60.0030.0339.99
5.1.50.0030.0339.89
5.1.40.0030.0339.97
5.1.30.0070.03310.26
5.1.20.0000.03710.44
5.1.10.0070.03010.06
5.1.00.0030.03710.08
5.0.50.0030.0438.55
5.0.40.0000.0438.35
5.0.30.0000.0538.20
5.0.20.0070.0378.36
5.0.10.0000.0408.22
5.0.00.0030.0508.16
4.4.90.0000.0377.82
4.4.80.0000.0477.82
4.4.70.0000.0377.82
4.4.60.0000.0377.82
4.4.50.0000.0377.82
4.4.40.0000.0537.82
4.4.30.0030.0337.82
4.4.20.0000.0437.82
4.4.10.0000.0377.82
4.4.00.0030.0437.82
4.3.110.0000.0377.82
4.3.100.0000.0377.82
4.3.90.0030.0337.82
4.3.80.0030.0437.82
4.3.70.0030.0377.82
4.3.60.0030.0377.82
4.3.50.0000.0407.82
4.3.40.0000.0437.82
4.3.30.0000.0377.82
4.3.20.0000.0377.82
4.3.10.0000.0377.82
4.3.00.0000.0377.82

preferences:
70.85 ms | 400 KiB | 5 Q