3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const VALUE0 = 0; const VALUE1 = 1; const VALUE2 = 2; const VALUES = array( self::VALUE0 = 'a', self::VALUE1 = 'b', self::VALUE2 = 'c' ); } class Bar { const SOMEVALUE = Foo::VALUES[Foo::VALUE0]; } var_dump(Bar::SOMEVALUE);

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.280.0100.04412.38
5.4.270.0130.04312.38
5.4.260.0200.04212.38
5.4.250.0060.04612.38
5.4.240.0130.04812.38
5.4.230.0070.04412.37
5.4.220.0090.03712.37
5.4.210.0100.04412.37
5.4.200.0090.04912.37
5.4.190.0070.04312.37
5.4.180.0100.04112.37
5.4.170.0080.03812.38
5.4.160.0100.04312.37
5.4.150.0090.04712.36
5.4.140.0130.04412.06
5.4.130.0110.04412.04
5.4.120.0080.04612.00
5.4.110.0090.04312.00
5.4.100.0070.03712.00
5.4.90.0110.03811.99
5.4.80.0130.03512.00
5.4.70.0050.04911.99
5.4.60.0070.03611.99
5.4.50.0070.03711.99
5.4.40.0060.03711.98
5.4.30.0130.06811.98
5.4.20.0070.05411.97
5.4.10.0080.04211.98
5.4.00.0090.04711.47
5.3.280.0140.05612.71
5.3.270.0090.04212.72
5.3.260.0050.04312.72
5.3.250.0080.04812.72
5.3.240.0050.04412.72
5.3.230.0070.05212.71
5.3.220.0110.04112.68
5.3.210.0070.04312.68
5.3.200.0070.05112.68
5.3.190.0090.05212.68
5.3.180.0140.04212.67
5.3.170.0100.03912.67
5.3.160.0120.04412.67
5.3.150.0090.05712.68
5.3.140.0120.04512.66
5.3.130.0100.04812.66
5.3.120.0110.04712.66
5.3.110.0100.05012.66
5.3.100.0090.04412.12
5.3.90.0100.05012.08
5.3.80.0100.04612.07
5.3.70.0060.04712.07
5.3.60.0050.04812.06
5.3.50.0090.05012.00
5.3.40.0060.05012.00
5.3.30.0090.04611.95
5.3.20.0080.04111.73
5.3.10.0070.03511.70
5.3.00.0090.05211.68

preferences:
137.08 ms | 1386 KiB | 7 Q