3v4l.org

run code in 300+ PHP versions simultaneously
<?php $this = 'foo'; $f = function () use ($this) { return strlen($this); };

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.310.0270.03719.16
5.4.300.0200.03719.21
5.4.290.0230.03718.91
5.4.280.0200.04318.79
5.4.270.0270.03018.90
5.4.260.0230.04719.08
5.4.250.0200.03719.21
5.4.240.0230.05019.08
5.4.230.0230.04019.23
5.4.220.0370.04718.80
5.4.210.0330.06719.08
5.4.200.0230.04719.16
5.4.190.0230.03719.23
5.4.180.0230.04019.07
5.4.170.0370.06318.80
5.4.160.0270.03719.20
5.4.150.0370.07019.23
5.4.140.0300.06016.45
5.4.130.0300.06716.29
5.4.120.0230.04016.43
5.4.110.0270.06016.21
5.4.100.0300.03316.31
5.4.90.0270.03716.39
5.4.80.0300.06016.35
5.4.70.0270.03716.27
5.4.60.0230.03716.36
5.4.50.0330.06316.36
5.4.40.0300.03716.21
5.4.30.0300.06016.48
5.4.20.0300.07016.45
5.4.10.0230.06716.39
5.4.00.0370.05015.95
5.3.280.0330.06314.43
5.3.270.0370.05314.46
5.3.260.0270.07314.55
5.3.250.0270.05714.46
5.3.240.0270.06714.57
5.3.230.0270.07714.46
5.3.220.0270.06714.40
5.3.210.0300.07014.65
5.3.200.0330.07014.54
5.3.190.0300.03014.53
5.3.180.0230.03714.40
5.3.170.0330.06014.59
5.3.160.0330.06714.41
5.3.150.0200.04314.46
5.3.140.0370.05014.41
5.3.130.0270.07714.48
5.3.120.0330.05014.59
5.3.110.0330.06714.52
5.3.100.0370.06714.02
5.3.90.0270.06313.93
5.3.80.0200.04713.94
5.3.70.0300.05713.86
5.3.60.0470.02713.98
5.3.50.0300.06713.88
5.3.40.0300.04013.97
5.3.30.0300.07013.93
5.3.20.0330.05313.64
5.3.10.0370.06013.51
5.3.00.0370.04013.47
5.2.170.0300.05011.68
5.2.160.0330.05011.68
5.2.150.0200.05711.68
5.2.140.0300.05711.68
5.2.130.0200.04311.68
5.2.120.0300.05011.68
5.2.110.0330.03711.68
5.2.100.0270.05711.68
5.2.90.0230.04311.68
5.2.80.0270.04011.68
5.2.70.0200.03011.68
5.2.60.0300.05711.68
5.2.50.0230.05311.68
5.2.40.0270.05011.68
5.2.30.0270.05311.68
5.2.20.0230.05711.68
5.2.10.0170.04311.68
5.2.00.0170.03311.68
5.1.60.0200.05311.68
5.1.50.0300.02011.68
5.1.40.0300.04011.68
5.1.30.0170.03711.68
5.1.20.0200.04011.68
5.1.10.0270.04011.68
5.1.00.0230.04711.68
5.0.50.0170.04311.68
5.0.40.0100.03011.68
5.0.30.0100.04011.68
5.0.20.0070.04711.68
5.0.10.0100.03011.68
5.0.00.0100.05011.68
4.4.90.0170.02711.68
4.4.80.0100.03311.68
4.4.70.0100.04011.68
4.4.60.0100.03011.68
4.4.50.0100.03311.68
4.4.40.0100.05011.68
4.4.30.0070.02011.68
4.4.20.0100.02011.68
4.4.10.0100.02011.68
4.4.00.0070.05311.68
4.3.110.0100.03011.68
4.3.100.0070.02311.68
4.3.90.0100.03311.68
4.3.80.0070.02711.68
4.3.70.0100.01711.68
4.3.60.0100.01711.68
4.3.50.0070.03311.68
4.3.40.0100.02711.68
4.3.30.0070.03711.68
4.3.20.0070.01711.68
4.3.10.0100.03311.68
4.3.00.0130.02711.68

preferences:
137.73 ms | 1394 KiB | 7 Q