3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); class A { static $i=1; static function B() { echo self::$i."\n"; echo __CLASS__; } } class B extends A { static $i=2; static function B(){ echo self::$i."\t".__CLASS__; } B::B();

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.240.0170.04212.39
5.4.230.0150.04812.39
5.4.220.0200.04012.38
5.4.210.0180.04212.38
5.4.200.0150.04312.38
5.4.190.0160.04612.38
5.4.180.0290.04512.38
5.4.170.0180.04612.39
5.4.160.0210.04212.38
5.4.150.0170.04512.38
5.4.140.0140.04612.07
5.4.130.0280.06612.05
5.4.120.0170.06212.02
5.4.110.0210.04012.01
5.4.100.0390.08212.01
5.4.90.0190.05312.01
5.4.80.0250.04812.01
5.4.70.0200.04312.00
5.4.60.0400.08912.00
5.4.50.0130.05012.01
5.4.40.0150.04411.99
5.4.30.0140.05011.99
5.4.20.0170.04211.99
5.4.10.0130.04511.99
5.4.00.0110.05311.48
5.3.280.0190.04312.71
5.3.270.0170.04412.72
5.3.260.0160.04512.71
5.3.250.0280.09212.72
5.3.240.0110.05212.72
5.3.230.0170.04812.70
5.3.220.0180.04312.68
5.3.210.0160.04512.68
5.3.200.0160.04412.68
5.3.190.0210.04212.68
5.3.180.0130.04912.67
5.3.170.0210.04212.67
5.3.160.0220.07312.67
5.3.150.0260.03712.67
5.3.140.0150.04812.66
5.3.130.0170.04412.66
5.3.120.0140.04612.66
5.3.110.0310.06112.66
5.3.100.0180.04412.12
5.3.90.0140.04512.09
5.3.80.0160.04712.08
5.3.70.0180.04512.07
5.3.60.0130.04712.06
5.3.50.0160.04712.00
5.3.40.0130.04812.00
5.3.30.0230.03711.96
5.3.20.0180.04811.74
5.3.10.0160.04311.70
5.3.00.0180.03911.69

preferences:
143.13 ms | 1394 KiB | 7 Q