3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace MyProject; function get($classname) { $a = __NAMESPACE__ . '\\' . $classname; return new $a; } class check { function __construct() { echo 'first'; } function check } class check { } $b = get('check');

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)
5.4.130.0310.08912.06
5.4.120.0150.04312.01
5.4.110.0360.08212.01
5.4.100.0130.04612.01
5.4.90.0230.06612.01
5.4.80.0240.06512.01
5.4.70.0240.06412.00
5.4.60.0150.04212.01
5.4.50.0230.06412.00
5.4.40.0340.08211.99
5.4.30.0270.06011.98
5.4.20.0200.06811.98
5.4.10.0250.06311.98
5.4.00.0270.06311.48
5.3.230.0350.08812.70
5.3.220.0230.07112.68
5.3.210.0160.04512.68
5.3.200.0150.04612.68
5.3.190.0300.06212.68
5.3.180.0220.05312.67
5.3.170.0300.06112.67
5.3.160.0180.04312.67
5.3.150.0300.06112.67
5.3.140.0180.04612.66
5.3.130.0250.06512.66
5.3.120.0220.06812.66
5.3.110.0260.06612.65
5.3.100.0240.06712.12
5.3.90.0290.06312.09
5.3.80.0270.06412.08
5.3.70.0250.06612.08
5.3.60.0320.09112.06
5.3.50.0160.04912.01
5.3.40.0380.08312.01
5.3.30.0170.04311.96
5.3.20.0150.04511.75
5.3.10.0240.06311.71
5.3.00.0220.06711.70

preferences:
139.82 ms | 1394 KiB | 7 Q