3v4l.org

run code in 300+ PHP versions simultaneously
<?php class HttpStatus { public static ABC = 'abc'; public static DEF = 'def'; } $abd = 'ABC'; $def = 'DEF'; echo HttpStatus::$abc; echo HttpStatus::${'ABC'};

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.0400.07320.09
7.0.10.0030.04320.15
7.0.00.0100.08320.22
5.6.170.0100.04720.53
5.6.160.0030.08320.50
5.6.150.0130.04018.25
5.6.140.0070.07018.15
5.6.130.0170.07318.16
5.6.120.0200.04021.09
5.6.110.0170.07720.97
5.6.100.0070.08720.88
5.6.90.0270.06720.95
5.6.80.0000.09020.43
5.5.310.0370.06720.37
5.5.300.0070.05018.01
5.5.290.0000.08317.99
5.5.280.0100.08720.87
5.5.270.0030.08020.79
5.5.260.0170.07020.66
5.5.250.0100.07020.46
5.5.240.2930.03020.16

preferences:
140.53 ms | 1394 KiB | 7 Q