3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(&$arg) { echo "hi\n"; var_dump($arg); } $a = 'bar'; $b =& $a; call_user_func('foo', $b); call_user_func('foo', &$a);

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.0070.08021.10
5.6.110.0070.07021.12
5.6.100.0130.07020.98
5.6.90.0130.07321.09
5.6.80.0170.07320.44
5.5.280.0130.06320.89
5.5.270.0030.06720.64
5.5.260.0070.03720.76
5.5.250.0130.06320.59
5.5.240.0070.07720.24
5.4.440.0800.05719.36
5.4.430.0770.05719.58
5.4.420.0770.05719.61
5.4.410.0870.04319.48
5.4.400.0670.06019.17
5.4.390.0670.05319.29
5.4.380.0700.05319.28
5.4.370.0630.05319.26
5.4.360.0730.04719.23
5.4.350.0600.05719.15
5.4.340.0670.05319.26
5.4.320.0630.05319.15
5.4.310.0630.05319.15
5.4.300.0800.05719.14
5.4.290.0770.05718.88
5.4.280.0830.05319.26
5.4.270.0630.05719.30
5.4.260.0670.05019.28
5.4.250.0670.05019.37
5.4.240.0630.05019.28
5.4.230.0670.05019.36
5.4.220.0700.05019.05
5.4.210.0670.06719.24
5.4.200.0730.05016.88
5.4.190.0870.04018.93
5.4.180.0730.05319.14
5.4.170.0770.05319.10
5.4.160.0830.04718.97
5.4.150.0830.04719.07
5.4.140.0770.05016.32
5.4.130.0700.04316.29
5.4.120.0070.05016.48
5.4.110.0000.05716.53
5.4.100.0100.05016.36
5.4.90.0500.05016.53
5.4.80.1000.06316.31
5.4.70.1070.06016.52
5.4.60.1000.05716.28
5.4.50.1030.06016.26
5.4.40.0800.05016.29
5.4.30.0830.05716.34
5.4.20.0900.04316.34
5.4.10.0730.05016.25
5.4.00.0700.05715.98
5.3.290.0670.05314.75
5.3.280.0730.04014.51
5.3.270.0630.04714.61
5.3.260.0830.05014.62
5.3.250.0770.05314.50
5.3.240.0870.08014.59
5.3.230.0700.04714.61
5.3.220.0630.05314.65
5.3.210.0670.05714.67
5.3.200.0730.05714.56
5.3.190.0600.05314.79
5.3.180.0700.04314.58
5.3.170.0630.05014.62
5.3.160.0800.04714.46
5.3.150.0730.05314.48
5.3.140.0500.06314.45
5.3.130.0730.04314.45
5.3.120.0500.06314.57
5.3.110.0830.05014.46
5.3.100.0800.05013.94
5.3.90.0770.05013.88
5.3.80.0830.04713.93
5.3.70.0670.05714.07
5.3.60.0800.04713.91
5.3.50.0900.03713.87
5.3.40.0730.05313.96
5.3.30.0770.04713.93
5.3.20.0770.05013.69
5.3.10.0770.05013.71
5.3.00.0730.05313.54
5.2.170.0600.04311.20
5.2.160.0670.04011.07
5.2.150.0670.03711.16
5.2.140.0670.03711.23
5.2.130.0630.04011.11
5.2.120.0670.03311.02
5.2.110.0630.04011.10
5.2.100.0670.03711.01
5.2.90.0730.04711.18
5.2.80.0630.05711.00
5.2.70.0700.04011.10
5.2.60.0670.04311.06
5.2.50.0670.04710.93
5.2.40.0600.03011.21
5.2.30.0500.04010.87
5.2.20.0600.03010.88
5.2.10.0570.03310.95
5.2.00.0600.03310.64
5.1.60.0430.04010.21
5.1.50.0500.0339.97
5.1.40.0470.03710.04
5.1.30.0470.04010.27
5.1.20.0500.03710.49
5.1.10.0600.02710.15
5.1.00.0430.0409.96
5.0.50.0270.0278.49
5.0.40.0270.0278.56
5.0.30.0300.0408.37
5.0.20.0300.0308.13
5.0.10.0270.0278.25
5.0.00.0300.0408.14
4.4.90.0370.0205.84
4.4.80.0330.0175.84
4.4.70.0370.0205.83
4.4.60.0300.0175.84
4.4.50.0230.0235.88
4.4.40.0230.0375.77
4.4.30.0230.0235.93
4.4.20.0230.0235.90
4.4.10.0230.0235.93
4.4.00.0270.0335.87
4.3.110.0330.0175.86
4.3.100.0270.0205.77
4.3.90.0230.0235.68
4.3.80.0230.0375.70
4.3.70.0270.0205.75
4.3.60.0200.0235.65
4.3.50.0230.0235.74
4.3.40.0230.0335.63
4.3.30.0070.0275.18
4.3.20.0070.0275.18
4.3.10.0100.0235.18
4.3.00.0030.0208.43

preferences:
146.51 ms | 1394 KiB | 7 Q