3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Cat{ class Foobar { public function __construct() { echo '[Foobar]'; } } class Foo { public function __construct() { echo '[Foo]'; } } define('Cat\\Foo', 'Cat\\Foobar'); } namespace { new Cat\\Foo() }

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.140.0160.04312.06
5.4.130.0440.07612.05
5.4.120.0200.05412.00
5.4.110.0160.04312.00
5.4.100.0230.06712.00
5.4.90.0190.07212.00
5.4.80.0160.04312.00
5.4.70.0180.04212.00
5.4.60.0210.06812.00
5.4.50.0190.03812.00
5.4.40.0320.08911.98
5.4.30.0120.04611.98
5.4.20.0130.04511.98
5.4.10.0160.04111.98
5.4.00.0170.04511.48
5.3.240.0160.04712.72
5.3.230.0170.04812.71
5.3.220.0180.04312.68
5.3.210.0200.04212.68
5.3.200.0210.07112.68
5.3.190.0210.03912.68
5.3.180.0140.04712.67
5.3.170.0190.04112.67
5.3.160.0190.04112.67
5.3.150.0130.04712.67
5.3.140.0210.04012.66
5.3.130.0210.03912.65
5.3.120.0210.05412.66
5.3.110.0360.06212.66
5.3.100.0140.04612.12
5.3.90.0150.04312.09
5.3.80.0170.04312.08
5.3.70.0150.04512.08
5.3.60.0260.06712.06
5.3.50.0160.04312.01
5.3.40.0270.07812.02
5.3.30.0120.04611.98
5.3.20.0190.07011.76
5.3.10.0180.04111.71
5.3.00.0190.06811.70

preferences:
148.95 ms | 1394 KiB | 7 Q