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.0130.04320.19
7.0.10.0030.08720.12
7.0.00.0030.08320.23
5.6.170.0200.04020.48
5.6.160.0100.03320.39
5.6.150.0030.04018.19
5.6.140.0000.04018.20
5.6.130.0030.07318.28
5.6.120.0070.03721.13
5.6.110.0000.04721.08
5.6.100.0100.07321.00
5.6.90.0100.08320.84
5.6.80.0130.07020.40
5.5.310.0300.07720.37
5.5.300.0000.05018.06
5.5.290.0170.07318.03
5.5.280.0130.05320.80
5.5.270.0030.04020.76
5.5.260.0030.06020.86
5.5.250.0100.08720.69
5.5.240.0130.06320.15

preferences:
138.68 ms | 1394 KiB | 7 Q