3v4l.org

run code in 300+ PHP versions simultaneously
<?php function x($class); { print "xxx\n"; // gets printed throw new Exception("Class '{$class}' not found"); } spl_autoload_register('x'); try { $a = A::z(); // FATAL ERROR: class 'A' not found // NOTE: // $a = A::$z; - will be correctly caught } catch (Exception $ex) { print "{$ex}\n"; // never gets executed }

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.80.0230.05312.00
5.4.70.0160.04412.00
5.4.60.0160.04412.00
5.4.50.0200.04011.99
5.4.40.0180.04311.98
5.4.30.0190.04611.98
5.4.20.0170.04111.97
5.4.10.0160.04311.98
5.4.00.0150.04511.47
5.3.180.0250.05412.67
5.3.170.0200.04412.67
5.3.160.0170.04712.67
5.3.150.0180.04412.67
5.3.140.0180.04412.66
5.3.130.0220.04412.66
5.3.120.0200.04412.66
5.3.110.0170.04812.65
5.3.100.0200.04412.12
5.3.90.0190.04112.09
5.3.80.0170.04712.08
5.3.70.0160.04812.08
5.3.60.0210.05512.06
5.3.50.0250.06712.02
5.3.40.0180.04412.02
5.3.30.0170.04311.98
5.3.20.0190.04111.76
5.3.10.0180.04111.72
5.3.00.0250.05011.71

preferences:
139.01 ms | 1394 KiB | 7 Q