3v4l.org

run code in 300+ PHP versions simultaneously
<?php function makeLouder($fn) { return function($a) use($fn) { return $fn($a)."!!!"; }; } $foo = makeLouder(abs); echo "<p>".$foo(900)."<br/>".$foo(-900); $bar = makeLouder(strtouppe)r; echo "<p>".$bar("upper");

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)
5.6.150.0030.04018.14
5.6.140.0000.04718.14
5.6.130.0070.04718.18
5.6.120.0030.07720.95
5.6.110.0030.08321.05
5.6.100.0070.04021.12
5.6.90.0130.06021.01
5.6.80.0030.03720.36
5.5.300.0030.07318.07
5.5.290.0070.06717.98
5.5.280.0030.07720.98
5.5.270.0070.06020.85
5.5.260.0070.05720.81
5.5.250.0070.05020.55
5.5.240.0070.07320.36
5.4.450.0070.07019.34
5.4.440.0100.06319.56
5.4.430.0170.05319.13
5.4.420.0230.04319.30
5.4.410.0130.06019.26
5.4.400.0100.06018.98
5.4.390.0030.06719.25
5.4.380.0230.04719.24
5.4.370.0200.04719.06
5.4.360.0170.05319.13
5.4.350.0170.05319.14
5.4.340.0170.05319.14
5.4.320.0170.05319.28
5.4.310.0200.04719.04
5.4.300.0070.06019.22
5.4.290.0170.05019.27
5.4.280.0200.04719.25
5.4.270.0170.04719.12
5.4.260.0170.05018.98
5.4.250.0200.04718.88
5.4.240.0130.05719.27
5.4.230.0270.04319.23
5.4.220.0170.05319.33
5.4.210.0200.05719.23
5.4.200.0200.05319.23
5.4.190.0200.04719.00
5.4.180.0170.05019.09
5.4.170.0070.06019.11
5.4.160.0230.05019.11
5.4.150.0100.05719.13
5.4.140.0270.05016.73
5.4.130.0170.04716.51
5.4.120.0130.05016.55
5.4.110.0170.05016.25
5.4.100.0270.04016.58
5.4.90.0170.05316.63
5.4.80.0270.05316.68
5.4.70.0170.04716.55
5.4.60.0130.05016.60
5.4.50.0230.04016.67
5.4.40.0300.04316.60
5.4.30.0230.04316.59
5.4.20.0200.04716.50
5.4.10.0170.04716.44
5.4.00.0170.04315.80
5.3.290.0200.04714.68
5.3.280.0170.05014.65
5.3.270.0100.06014.65
5.3.260.0300.05014.68
5.3.250.0200.05014.59
5.3.240.0130.05314.63
5.3.230.0170.05014.69
5.3.220.0230.04314.63
5.3.210.0300.06314.54
5.3.200.0270.03714.48
5.3.190.0070.06014.58
5.3.180.0100.06014.54
5.3.170.0100.06014.57
5.3.160.0200.04314.59
5.3.150.0170.04714.48
5.3.140.0070.05714.64
5.3.130.0170.05014.54
5.3.120.0170.05314.60
5.3.110.0130.05314.61
5.3.100.0130.05313.91
5.3.90.0100.05314.06
5.3.80.0230.05314.25
5.3.70.0130.05014.11
5.3.60.0200.04313.92
5.3.50.0200.04313.96
5.3.40.0130.05313.97
5.3.30.0230.04013.82
5.3.20.0170.04713.63
5.3.10.0030.06013.72
5.3.00.0170.05713.72
5.2.170.0100.04311.05
5.2.160.0130.04011.06
5.2.150.0030.05011.21
5.2.140.0230.04711.15
5.2.130.0130.05011.25
5.2.120.0130.04011.33
5.2.110.0170.03711.00
5.2.100.0070.04711.11
5.2.90.0070.05711.00
5.2.80.0100.04311.05
5.2.70.0100.04711.24
5.2.60.0130.04311.13
5.2.50.0170.04010.92
5.2.40.0070.04311.00
5.2.30.0170.04310.98
5.2.20.0230.04310.91
5.2.10.0130.05010.79
5.2.00.0170.03710.78
5.1.60.0170.0279.98
5.1.50.0170.03010.07
5.1.40.0170.0309.90
5.1.30.0130.03310.25
5.1.20.0230.04310.36
5.1.10.0170.04710.09
5.1.00.0130.0539.95
5.0.50.0100.0438.43
5.0.40.0130.0278.39
5.0.30.0030.0478.36
5.0.20.0030.0308.36
5.0.10.0070.0308.36
5.0.00.0100.0408.36
4.4.90.0070.0208.36
4.4.80.0000.0278.36
4.4.70.0200.0178.36
4.4.60.0070.0238.36
4.4.50.0100.0178.36
4.4.40.0000.0408.36
4.4.30.0130.0208.36
4.4.20.0070.0278.36
4.4.10.0030.0238.36
4.4.00.0000.0378.36
4.3.110.0070.0278.36
4.3.100.0100.0178.36
4.3.90.0100.0138.36
4.3.80.0070.0308.36
4.3.70.0070.0178.36
4.3.60.0030.0208.36
4.3.50.0070.0178.36
4.3.40.0070.0308.36
4.3.30.0130.0208.36
4.3.20.0130.0178.36
4.3.10.0000.0238.36
4.3.00.0030.0208.36

preferences:
145.18 ms | 1394 KiB | 7 Q