3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL | E_STRICT); define('ITERATIONS', 2000000); function foo($a) { return; } $start = microtime(true); for ($i=0; $i < ITERATIONS; ++$i) { foo(1); } $stop = microtime(true); echo "Test name: " . ($stop - $start) . " seconds". PHP_EOL;

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.2.00.0030.05618.95
7.1.70.0070.09117.07
7.1.60.0170.08519.82
7.1.50.0170.08016.96
7.1.00.0030.14722.29
7.0.200.0030.05416.71
7.0.140.0070.14322.01
7.0.60.0070.15319.92
7.0.50.0200.09717.88
7.0.40.0030.14320.24
7.0.30.0230.12320.30
7.0.20.0370.10720.33
7.0.10.0230.12320.24
7.0.00.0000.14020.30
5.6.280.0000.28021.11
5.6.210.0100.25720.51
5.6.200.0100.25018.18
5.6.190.0000.24720.48
5.6.180.3200.20320.59
5.6.170.0300.22720.34
5.6.160.0130.27320.51
5.6.150.0000.20318.29
5.6.140.0070.27718.18
5.6.130.0070.23018.14
5.6.120.0070.25320.97
5.6.110.0200.25021.05
5.6.100.0030.25021.04
5.6.90.0100.27020.97
5.6.80.0070.22020.45
5.6.70.0200.24720.39
5.5.350.0030.30320.43
5.5.340.0070.22718.00
5.5.330.0000.27320.28
5.5.320.0230.25320.26
5.5.310.0300.27320.28
5.5.300.0030.21318.03
5.5.290.0000.22017.99
5.5.280.0130.23320.80
5.5.270.0070.25320.96
5.5.260.0100.25020.88
5.5.250.0070.26020.58
5.5.240.0130.26320.26
5.4.450.0570.29319.12
5.4.440.0600.30019.60
5.4.430.0130.29019.56
5.4.420.0200.37019.39
5.4.410.0130.33719.57
5.4.400.4070.00018.85
5.4.390.4070.00018.63
5.4.380.0400.41018.53
5.4.370.0200.28018.80
5.4.360.0130.29018.79
5.4.350.0230.32718.52
5.4.340.0130.30718.78
5.4.320.0020.25312.50
5.4.310.0100.28112.50
5.4.300.0080.21412.50
5.4.290.0140.20912.50
5.4.280.0050.22312.40
5.4.270.0230.48319.05
5.4.260.0130.49318.79
5.4.250.0100.53718.84
5.4.240.0200.45019.00
5.4.230.0100.33318.94
5.4.220.0030.32718.77
5.4.210.0100.34318.85
5.4.200.0030.55318.97
5.4.190.0100.31318.74
5.4.180.0230.46018.96
5.4.170.0000.41318.98
5.4.160.0030.36319.01
5.4.150.0100.48718.68
5.4.140.0000.37016.29
5.4.130.0130.50316.36
5.4.120.0070.47316.37
5.4.110.0170.49316.39
5.4.100.0070.30016.53
5.4.90.0030.32716.49
5.4.80.0130.48716.55
5.4.70.0130.38016.40
5.4.60.0200.52716.50
5.4.50.0100.39316.38
5.4.40.0100.32716.51
5.4.30.0130.41716.52
5.4.20.0130.50016.33
5.4.10.0170.49716.45
5.4.00.0100.29015.92
5.3.290.0070.32612.80
5.3.280.0130.75314.65
5.3.270.0230.64314.82
5.3.260.0170.78014.59
5.3.250.0200.55014.68
5.3.240.0130.56714.73
5.3.230.0130.46714.66
5.3.220.0100.62314.65
5.3.210.0100.56014.65
5.3.200.0200.60014.65
5.3.190.0100.46314.64
5.3.180.0100.53314.46
5.3.170.0030.50014.53
5.3.160.0000.70314.64
5.3.150.0070.61314.60
5.3.140.0270.82014.54
5.3.130.0130.59314.38
5.3.120.0130.53014.54
5.3.110.0130.48314.63
5.3.100.0070.50314.17
5.3.90.0130.76714.23
5.3.80.0100.50714.09
5.3.70.0130.60014.09
5.3.60.0130.72014.00
5.3.50.0130.66714.01
5.3.40.0170.54713.94
5.3.30.0030.62013.89
5.3.20.0130.75713.75
5.3.10.0100.51313.73
5.3.00.0100.60713.72
5.2.170.0230.75011.13
5.2.160.0200.85711.13
5.2.150.0200.80711.22
5.2.140.0130.66711.09
5.2.130.0130.82711.17
5.2.120.0100.77711.18
5.2.110.0100.64011.18
5.2.100.0100.88011.20
5.2.90.0100.72311.27
5.2.80.0100.94311.31
5.2.70.0170.78711.17
5.2.60.0030.76011.13
5.2.50.0170.66311.20
5.2.40.0100.62011.09
5.2.30.0130.75711.05
5.2.20.0230.98710.94
5.2.10.0100.77710.92
5.2.00.0070.70010.70
5.1.60.0100.5739.83
5.1.50.0100.56010.08
5.1.40.0100.75710.04
5.1.30.0030.66310.29
5.1.20.0030.64010.43
5.1.10.0100.66710.04
5.1.00.0030.58310.21
5.0.50.0101.0738.70
5.0.40.0000.9508.55
5.0.30.0001.0208.41
5.0.20.0031.0537.98
5.0.10.0131.1078.41
5.0.00.0031.2138.30
4.4.90.0101.0806.29
4.4.80.0130.8806.29
4.4.70.0030.9376.28
4.4.60.0070.9476.28
4.4.50.0070.9336.28
4.4.40.0171.3006.28
4.4.30.0070.9036.28
4.4.20.0171.0476.28
4.4.10.0000.9776.28
4.4.00.0070.9406.28
4.3.110.0070.8436.28
4.3.100.0001.0576.28
4.3.90.0030.9506.28
4.3.80.0071.0536.28
4.3.70.0071.4306.28
4.3.60.0130.9806.28
4.3.50.0131.0806.28
4.3.40.0070.9476.28
4.3.30.0031.3176.28
4.3.20.0130.9106.28
4.3.10.0070.9536.28
4.3.00.0130.7076.07

preferences:
38.21 ms | 401 KiB | 5 Q