3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = '0xa'; $y = 10; echo $x == $y; echo $x == (str)$y;

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.0170.04020.07
7.0.10.0100.08320.06
7.0.00.0170.07320.09
5.6.170.0230.05720.46
5.6.160.0000.04320.59
5.6.150.0170.07318.16
5.6.140.0100.03718.11
5.6.130.0000.04718.17
5.6.120.0070.08720.99
5.6.110.0130.07321.11
5.6.100.0100.07021.14
5.6.90.0100.05720.99
5.6.80.0030.08020.39
5.5.310.0270.08720.27
5.5.300.0030.03718.00
5.5.290.0000.05318.08
5.5.280.0130.08020.77
5.5.270.0100.07320.74
5.5.260.0070.06020.75
5.5.250.0100.04020.70
5.5.240.0130.03320.18

preferences:
142.64 ms | 1398 KiB | 7 Q