3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo; $foo = function (&$arg) { var_dump($arg); }; $a = 'bar'; $b =& $a; $x = "call_user_func_array" $x($foo, [$b]); \call_user_func_array($foo, [$b]);

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.120.0000.08321.00
5.6.110.0000.04720.96
5.6.100.0030.04021.04
5.6.90.0030.08720.97
5.6.80.0100.08320.40
5.5.280.0030.08320.68
5.5.270.0130.07720.63
5.5.260.0070.07320.93
5.5.250.0100.03720.66
5.5.240.0070.07320.16
5.4.440.0970.04019.38
5.4.430.0900.05319.36
5.4.420.0770.05719.52
5.4.410.0800.05319.26
5.4.400.0770.05319.22
5.4.390.0800.05319.31
5.4.380.0700.06018.98
5.4.370.0730.06019.02
5.4.360.0830.05019.06
5.4.350.0830.05018.98
5.4.340.0870.06318.76
5.4.320.0800.05319.18
5.4.310.0800.05318.94
5.4.300.0930.05719.30
5.4.290.0830.05719.21
5.4.280.0830.05319.16
5.4.270.1000.03719.03
5.4.260.0800.05018.88
5.4.250.0830.05019.04
5.4.240.0830.05019.04
5.4.230.0730.05319.14
5.4.220.0730.05718.77
5.4.210.0870.04018.99
5.4.200.0870.04017.04
5.4.190.0800.04719.08
5.4.180.0800.05318.91
5.4.170.0870.05319.07
5.4.160.0730.04318.89
5.4.150.0800.05319.14
5.4.140.0670.05016.33
5.4.130.0630.05016.38
5.4.120.0670.04716.39
5.4.110.0870.03016.32
5.4.100.0670.05316.48
5.4.90.0630.04316.29
5.4.80.0770.04716.31
5.4.70.0630.05016.36
5.4.60.0530.04716.48
5.4.50.0600.04316.48
5.4.40.0570.05016.38
5.4.30.0700.04016.34
5.4.20.0430.06316.39
5.4.10.0700.03716.22
5.4.00.0600.04715.82
5.3.290.0870.04314.56
5.3.280.0730.06314.50
5.3.270.0800.04314.54
5.3.260.0630.05314.66
5.3.250.0570.05014.60
5.3.240.0500.05714.68
5.3.230.0070.05314.74
5.3.220.0330.05314.54
5.3.210.0670.05314.46
5.3.200.0830.05314.48
5.3.190.0670.04714.43
5.3.180.0700.04314.46
5.3.170.0630.04714.58
5.3.160.0600.05314.61
5.3.150.0470.06314.53
5.3.140.0600.04714.55
5.3.130.0630.05714.54
5.3.120.0670.05714.45
5.3.110.0870.04314.55
5.3.100.0700.06014.09
5.3.90.0800.05014.02
5.3.80.0600.05314.05
5.3.70.0800.04014.07
5.3.60.0670.05314.06
5.3.50.0700.05713.96
5.3.40.0670.05314.02
5.3.30.0670.05013.98
5.3.20.0700.05313.70
5.3.10.0600.04713.73
5.3.00.0670.05013.55
5.2.170.0530.04711.08
5.2.160.0600.03711.08
5.2.150.0770.04011.16
5.2.140.0570.04311.08
5.2.130.0730.03010.94
5.2.120.0730.02711.04
5.2.110.0800.04711.14
5.2.100.0600.04011.04
5.2.90.0600.03310.99
5.2.80.0500.04010.89
5.2.70.0530.04011.27
5.2.60.0570.04710.98
5.2.50.0500.04310.84
5.2.40.0530.03310.78
5.2.30.0470.03710.81
5.2.20.0600.03011.00
5.2.10.0470.03710.87
5.2.00.0570.03710.61
5.1.60.0470.0309.90
5.1.50.0570.0339.92
5.1.40.0470.0379.85
5.1.30.0430.03710.28
5.1.20.0470.03710.39
5.1.10.0530.03010.04
5.1.00.0530.0379.95
5.0.50.0230.0238.59
5.0.40.0170.0308.38
5.0.30.0230.0438.23
5.0.20.0230.0308.11
5.0.10.0270.0238.07
5.0.00.0170.0478.06
4.4.90.0230.0306.32
4.4.80.0230.0206.32
4.4.70.0200.0236.32
4.4.60.0070.0306.32
4.4.50.0200.0236.32
4.4.40.0170.0336.32
4.4.30.0200.0276.32
4.4.20.0270.0136.32
4.4.10.0170.0206.32
4.4.00.0130.0406.32
4.3.110.0200.0206.32
4.3.100.0230.0206.32
4.3.90.0230.0206.32
4.3.80.0230.0336.32
4.3.70.0230.0306.32
4.3.60.0230.0236.32
4.3.50.0230.0306.32
4.3.40.0330.0276.32
4.3.30.0070.0276.32
4.3.20.0130.0206.32
4.3.10.0070.0236.32
4.3.00.0030.0237.25

preferences:
165.61 ms | 1394 KiB | 7 Q