3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Foo { public $hidden function hide() { $hidden = $this; unset($this); } function hello() { echo 'world'; } } class Bar { use Foo; } $foo = new Bar(); $foo->destroy(); echo $foo->bar; $foo->hello();

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.260.0200.03719.15
5.4.250.0230.06319.08
5.4.240.0270.06719.21
5.4.230.0300.04719.16
5.4.220.0370.06719.07
5.4.210.0230.04719.05
5.4.200.0300.06319.05
5.4.190.0230.05719.14
5.4.180.0230.07019.11
5.4.170.0230.03319.30
5.4.160.0300.06019.07
5.4.150.0300.05019.18
5.4.140.0230.03716.52
5.4.130.0370.04316.35
5.4.120.0300.07016.66
5.4.110.0300.03716.29
5.4.100.0230.06716.56
5.4.90.0300.06716.37
5.4.80.0270.04716.46
5.4.70.0230.03316.17
5.4.60.0300.06716.52
5.4.50.0270.02716.43
5.4.40.0230.03716.38
5.4.30.0230.03316.48
5.4.20.0270.04316.32
5.4.10.0370.06316.34
5.4.00.0330.04315.95
5.3.280.0330.05014.42
5.3.270.0300.06314.48
5.3.260.0270.03014.56
5.3.250.0300.05014.45
5.3.240.0270.03314.44
5.3.230.0270.07314.63
5.3.220.0270.04714.52
5.3.210.0300.07314.52
5.3.200.0270.08014.44
5.3.190.0400.06014.50
5.3.180.0330.06314.65
5.3.170.0200.06014.61
5.3.160.0270.05714.40
5.3.150.0270.06314.52
5.3.140.0200.07314.49
5.3.130.0270.04314.50
5.3.120.0200.05314.46
5.3.110.0230.03714.52
5.3.100.0230.04313.95
5.3.90.0370.06313.86
5.3.80.0230.04313.87
5.3.70.0300.04713.87
5.3.60.0270.06013.79
5.3.50.0270.06313.80
5.3.40.0370.03313.99
5.3.30.0230.07713.78
5.3.20.0330.04013.64
5.3.10.0300.05013.75
5.3.00.0330.06013.47

preferences:
160.19 ms | 1394 KiB | 7 Q