3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { $bar = function () { echo "bar\n"; } $bar(); } foo();

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.4.270.0070.05018.98
5.4.260.0130.04319.10
5.4.250.0100.05018.96
5.4.240.0100.05318.74
5.4.230.0170.05719.04
5.4.220.0000.06018.85
5.4.210.0100.04718.75
5.4.200.0170.06018.95
5.4.190.0130.04318.94
5.4.180.0100.05018.99
5.4.170.0030.05319.09
5.4.160.0070.05018.89
5.4.150.0030.05718.94
5.4.140.0170.04316.41
5.4.130.0000.05316.36
5.4.120.0070.04716.41
5.4.110.0070.05016.44
5.4.100.0100.05716.62
5.4.90.0000.06016.70
5.4.80.0030.05016.55
5.4.70.0070.04716.52
5.4.60.0130.04316.35
5.4.50.0030.05316.47
5.4.40.0100.04316.35
5.4.30.0070.04716.50
5.4.20.0070.04716.53
5.4.10.0030.05016.49
5.4.00.0000.05316.01
5.3.280.0070.05014.66
5.3.270.0100.04714.59
5.3.260.0070.05014.43
5.3.250.0070.05014.84
5.3.240.0070.05014.69
5.3.230.0070.07014.57
5.3.220.0030.05314.64
5.3.210.0070.05714.68
5.3.200.0030.05714.71
5.3.190.0070.05314.66
5.3.180.0130.04714.79
5.3.170.0000.06014.58
5.3.160.0130.06014.64
5.3.150.0000.06014.54
5.3.140.0130.06314.46
5.3.130.0000.05714.77
5.3.120.0070.05014.47
5.3.110.0030.05314.52
5.3.100.0130.05314.03
5.3.90.0070.04714.26
5.3.80.0000.05714.11
5.3.70.0070.07014.11
5.3.60.0100.04714.23
5.3.50.0170.04014.04
5.3.40.0030.05313.93
5.3.30.0070.04713.81
5.3.20.0070.07013.68
5.3.10.0200.03013.72
5.3.00.0100.04313.63
5.2.170.0030.04711.13
5.2.160.0070.04710.96
5.2.150.0070.04711.36
5.2.140.0030.04311.12
5.2.130.0100.03711.18
5.2.120.0030.04011.09
5.2.110.0070.03711.16
5.2.100.0030.04011.08
5.2.90.0070.03711.32
5.2.80.0070.04011.25
5.2.70.0100.03711.30
5.2.60.0070.03711.12
5.2.50.0000.04711.08
5.2.40.0100.03310.84
5.2.30.0100.03711.05
5.2.20.0030.04011.05
5.2.10.0100.03311.08
5.2.00.0170.02710.79
5.1.60.0070.03010.08
5.1.50.0030.03310.06
5.1.40.0070.03010.04
5.1.30.0030.03710.30
5.1.20.0030.04010.34
5.1.10.0070.04710.15
5.1.00.0000.04010.17
5.0.50.0100.0208.63
5.0.40.0000.0308.49
5.0.30.0030.0408.27
5.0.20.0030.0238.43
5.0.10.0030.0278.26
5.0.00.0070.0408.34
4.4.90.0030.0306.97
4.4.80.0070.0176.97
4.4.70.0070.0276.97
4.4.60.0030.0206.97
4.4.50.0030.0206.97
4.4.40.0000.0376.97
4.4.30.0030.0276.97
4.4.20.0000.0236.97
4.4.10.0000.0236.97
4.4.00.0000.0336.97
4.3.110.0030.0206.97
4.3.100.0030.0206.97
4.3.90.0000.0236.97
4.3.80.0030.0306.97
4.3.70.0000.0236.97
4.3.60.0030.0206.97
4.3.50.0000.0236.97
4.3.40.0000.0436.97
4.3.30.0000.0236.97
4.3.20.0000.0236.97
4.3.10.0000.0206.97
4.3.00.0070.0207.19

preferences:
138.64 ms | 1394 KiB | 7 Q