3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { $foo = 1; } $a = new A; $b = $a; // $a and $b are copies of the same identifier // ($a) = ($b) = <id> $b->foo = 2; echo $a->foo."\n"; $c = new A; $d = &$c; // $c and $d are references // ($c,$d) = <id> $d->foo = 2; echo $c->foo."\n"; $e = new A; function foo($obj) { // ($obj) = ($e) = <id> $obj->foo = 2; } foo($e); echo $e->foo."\n";

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.350.0230.04319.25
5.4.340.0170.03718.88
5.4.320.0170.03718.87
5.4.310.0170.03319.06
5.4.300.0270.04019.00
5.4.290.0200.03719.13
5.4.280.0200.04018.84
5.4.270.0170.03319.14
5.4.260.0200.03319.22
5.4.250.0200.03319.07
5.4.240.0070.04319.21
5.4.230.0170.03719.14
5.4.220.0170.03718.91
5.4.210.0170.03718.99
5.4.200.0170.03318.99
5.4.190.0200.03318.80
5.4.180.0170.03718.94
5.4.170.0170.03718.79
5.4.160.0130.03319.14
5.4.150.0070.04018.84
5.4.140.0170.04016.50
5.4.130.0170.03716.66
5.4.120.0200.06016.33
5.4.110.0130.03716.56
5.4.100.0200.03316.28
5.4.90.0200.04316.58
5.4.80.0200.07016.49
5.4.70.0100.05016.23
5.4.60.0200.04316.38
5.4.50.0130.05316.43
5.4.40.0130.04316.38
5.4.30.0200.05016.16
5.4.20.0230.06716.43
5.4.10.0200.04716.37
5.4.00.0270.06315.77
5.3.290.0170.06714.74
5.3.280.0270.06014.57
5.3.270.0230.06314.68
5.3.260.0170.04314.59
5.3.250.0270.07014.70
5.3.240.0430.06014.50
5.3.230.0130.04014.68
5.3.220.0100.04314.53
5.3.210.0230.07314.47
5.3.200.0200.04014.62
5.3.190.0230.04014.48
5.3.180.0200.03314.63
5.3.170.0100.05014.48
5.3.160.0230.06314.47
5.3.150.0230.07014.78
5.3.140.0200.07714.63
5.3.130.0270.04714.63
5.3.120.0230.05014.68
5.3.110.0230.07314.77
5.3.100.0270.02713.94
5.3.90.0130.04014.00
5.3.80.0200.07014.02
5.3.70.0170.03714.10
5.3.60.0200.05313.93
5.3.50.0170.07314.16
5.3.40.0200.05313.84
5.3.30.0200.06713.98
5.3.20.0230.06713.74
5.3.10.0200.06313.58
5.3.00.0270.06013.56
5.2.170.0230.06011.05
5.2.160.0200.05311.05
5.2.150.0230.05311.15
5.2.140.0170.03711.14
5.2.130.0130.06011.01
5.2.120.0270.03011.12
5.2.110.0130.05311.09
5.2.100.0230.06011.01
5.2.90.0100.04311.21
5.2.80.0030.03711.04
5.2.70.0000.06310.99
5.2.60.0730.04711.13
5.2.50.0330.06010.94
5.2.40.0100.04011.04
5.2.30.0230.04710.89
5.2.20.0170.05710.96
5.2.10.0130.06010.93
5.2.00.0100.05710.94
5.1.60.0170.04710.14
5.1.50.0230.0409.87
5.1.40.0100.03010.05
5.1.30.0100.05310.25
5.1.20.0130.03710.35
5.1.10.0170.02310.18
5.1.00.0130.0439.96
5.0.50.0030.0278.73
5.0.40.0100.0378.33
5.0.30.0100.0478.10
5.0.20.0070.0238.29
5.0.10.0100.0438.25
5.0.00.0130.0478.05
4.4.90.0030.0207.94
4.4.80.0200.0277.94
4.4.70.0070.0207.94
4.4.60.0070.0177.94
4.4.50.0130.0277.94
4.4.40.0100.0477.94
4.4.30.0070.0277.94
4.4.20.0070.0307.94
4.4.10.0070.0207.94
4.4.00.0070.0437.94
4.3.110.0100.0177.94
4.3.100.0070.0137.94
4.3.90.0270.0207.94
4.3.80.0030.0337.94
4.3.70.0030.0177.94
4.3.60.0130.0307.94
4.3.50.0030.0377.94
4.3.40.0030.0437.94
4.3.30.0070.0307.94
4.3.20.0070.0177.94
4.3.10.0030.0307.94
4.3.00.0030.0307.94

preferences:
139.95 ms | 1394 KiB | 7 Q