3v4l.org

run code in 300+ PHP versions simultaneously
<?php class T { private $allowed = 0; function __destruct() { if ($this->allowed == 1) echo "SUCCESS"; } }; $a = new T(); print(base64_encode(serialize($a))); print('\n'); $data ="O:1:\"T\":1:{s:10:\"Tallowed";i:0;}"; print($data); print('\n'); var_dump(unserialize($data)); ?>

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)
7.0.10.0230.07020.19
7.0.00.0070.09020.06
5.6.160.0170.07720.54
5.6.150.0030.04018.18
5.6.140.0100.04018.28
5.6.130.0130.07018.18
5.6.120.0130.05721.04
5.6.110.0000.06321.00
5.6.100.0070.05721.11
5.6.90.0130.08321.18
5.6.80.0030.07320.37
5.5.300.0130.07317.92
5.5.290.0070.09018.03
5.5.280.0030.04020.77
5.5.270.0030.07320.87
5.5.260.0130.04720.89
5.5.250.0130.07320.68
5.5.240.0330.03720.18

preferences:
136.28 ms | 1394 KiB | 7 Q