3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { const A = 'f'; } var_dump(Test::A => '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.0330.03720.09
7.0.10.0100.08020.24
7.0.00.0100.04020.11
5.6.170.0330.07720.56
5.6.160.0030.06720.51
5.6.150.0070.07718.28
5.6.140.0130.06718.16
5.6.130.0100.07718.27
5.6.120.0170.07021.05
5.6.110.0030.07720.98
5.6.100.0170.07321.04
5.6.90.0070.06721.13
5.6.80.0100.05020.54
5.5.310.0300.07320.34
5.5.300.0000.04318.08
5.5.290.0000.04318.05
5.5.280.0130.05720.96
5.5.270.0030.04720.95
5.5.260.0130.06720.86
5.5.250.0030.08020.58
5.5.240.0330.06320.12

preferences:
138.99 ms | 1398 KiB | 7 Q