3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Bar { public static function dump() { var_dump( '__CLASS__: ' . __CLASS__, 'self::class: ' . self::class, 'static::class: ' . static::class, 'self::foo(): ' . self::$foo); } } class Foo { use Bar; public static $foo = __CLASS__; public static foo() { return __CLASS__; } } Foo::dump();

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.300.0060.04412.52
5.4.290.0070.03612.51
5.4.280.0040.04712.41
5.4.270.0040.04412.41
5.4.260.0100.03812.41
5.4.250.0080.04512.41
5.4.240.0080.04412.41
5.4.230.0070.04112.40
5.4.220.0070.03712.40
5.4.210.0070.04112.40
5.4.200.0090.05512.40
5.4.190.0070.05612.40
5.4.180.0100.03912.39
5.4.170.0100.04412.40
5.4.160.0080.04512.40
5.4.150.0120.04512.40
5.4.140.0070.04112.09
5.4.130.0040.04012.07
5.4.120.0090.03612.03
5.4.110.0090.03612.03
5.4.100.0050.03812.03
5.4.90.0040.04112.03
5.4.80.0040.04012.04
5.4.70.0060.03912.03
5.4.60.0080.03612.03
5.4.50.0030.04212.03
5.4.40.0040.04012.01
5.4.30.0060.05212.01
5.4.20.0070.04612.01
5.4.10.0070.04112.01
5.4.00.0080.03711.50
5.3.280.0030.04312.71
5.3.270.0080.03912.73
5.3.260.0070.04312.72
5.3.250.0070.03912.72
5.3.240.0100.03612.72
5.3.230.0050.04512.71
5.3.220.0080.04012.68
5.3.210.0060.04112.68
5.3.200.0060.04712.68
5.3.190.0070.03912.68
5.3.180.0070.03812.67
5.3.170.0050.05112.67
5.3.160.0060.04612.68
5.3.150.0100.04812.67
5.3.140.0110.04512.66
5.3.130.0080.06312.66
5.3.120.0110.04712.65
5.3.110.0070.05412.66
5.3.100.0070.05012.12
5.3.90.0090.04912.08
5.3.80.0060.05212.07
5.3.70.0080.05012.08
5.3.60.0090.05612.07
5.3.50.0100.04812.00
5.3.40.0130.04712.00
5.3.30.0120.04811.95
5.3.20.0130.04611.73
5.3.10.0090.05011.70
5.3.00.0070.04011.68

preferences:
139.05 ms | 1394 KiB | 7 Q