3v4l.org

run code in 300+ PHP versions simultaneously
<?php class T { public $a = hex2bin("7065726B656C65"), $b = hex2bin("73616174616E61"); } $t = new T(); var_dump($t->a); var_dump($t->b);

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.20.0070.05020.30
7.0.10.0000.04720.15
7.0.00.0170.08020.19
5.6.170.0200.04020.45
5.6.160.0030.04020.54
5.6.150.0100.07718.29
5.6.140.0070.03318.14
5.6.130.0100.05018.18
5.6.120.0030.04021.09
5.6.110.0030.04321.00
5.6.100.0100.06721.18
5.6.90.0130.03320.96
5.6.80.0100.06720.43
5.5.310.0270.07720.30
5.5.300.0070.04718.02
5.5.290.0000.05718.05
5.5.280.0170.07320.84
5.5.270.0070.04020.67
5.5.260.0130.05720.64
5.5.250.0070.07720.68
5.5.240.0130.08720.04

preferences:
149.09 ms | 1394 KiB | 7 Q