3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $hello; public function deleteMe(&$obj) { $obj = (unset) $obj; } public function hello() { echo 'hello from foo'; } public function __unset() { echo 'I been called'; } } $foo = new Foo(); var_dump($foo); $foo->deleteMe($foo); var_dump($foo);

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.0000.05719.07
5.4.250.0030.05318.95
5.4.240.0030.08019.00
5.4.230.0070.05318.77
5.4.220.0070.05318.80
5.4.210.0200.06718.91
5.4.200.0100.06318.96
5.4.190.0070.05318.84
5.4.180.0030.08018.94
5.4.170.0170.06719.09
5.4.160.0030.06718.75
5.4.150.0000.06318.74
5.4.140.0130.05716.34
5.4.130.0130.06716.48
5.4.120.0030.05316.48
5.4.110.0070.05016.46
5.4.100.0100.05316.50
5.4.90.0170.03716.54
5.4.80.0030.05716.49
5.4.70.0100.04716.35
5.4.60.0070.04716.41
5.4.50.0000.05316.48
5.4.40.0100.05016.50
5.4.30.0070.04716.52
5.4.20.0130.04716.47
5.4.10.0130.04316.56
5.4.00.0070.05715.78
5.3.280.0100.05014.62
5.3.270.0030.05314.79
5.3.260.0030.06314.67
5.3.250.0200.04314.69
5.3.240.0100.04714.61
5.3.230.0130.04314.69
5.3.220.0070.05014.55
5.3.210.0100.05314.64
5.3.200.0070.06714.75
5.3.190.0200.03714.54
5.3.180.0070.05014.65
5.3.170.0130.04014.65
5.3.160.0000.05314.65
5.3.150.0100.04714.59
5.3.140.0200.05714.58
5.3.130.0070.05714.70
5.3.120.0100.05014.64
5.3.110.0130.06714.77
5.3.100.0170.04314.03
5.3.90.0100.04714.00
5.3.80.0030.05714.23
5.3.70.0130.04314.02
5.3.60.0100.04713.99
5.3.50.0130.06013.97
5.3.40.0030.06713.79
5.3.30.0100.04314.09
5.3.20.0000.06713.72
5.3.10.0030.05013.73
5.3.00.0070.05013.72

preferences:
133.54 ms | 1398 KiB | 7 Q