3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { public static $_bar; } class Foo1 extends TestClass { protected static $_bar; } class Foo2 extends TestClass { public static $_bar; } //TestClass::$_bar = "tet"; Foo1::$_bar = 'Hello'; Foo2::$_bar = 'World'; echo Foo1::$_bar . ' ' . Foo2::$_bar; // Prints: World World

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.160.0000.08019.22
5.4.150.0070.04018.83
5.4.140.0070.07316.48
5.4.130.0000.04716.37
5.4.120.0030.07316.55
5.4.110.0070.04716.39
5.4.100.0130.05316.45
5.4.90.0030.03716.57
5.4.80.0130.06316.51
5.4.70.0000.05016.49
5.4.60.0170.07016.40
5.4.50.0030.07316.43
5.4.40.0100.07316.25
5.4.30.0000.05016.36
5.4.20.0100.06016.27
5.4.10.0070.05016.36
5.4.00.0070.04715.83
5.3.260.0100.06314.61
5.3.250.0100.04014.64
5.3.240.0030.04714.67
5.3.230.0100.05314.59
5.3.220.0130.05714.61
5.3.210.0000.07014.70
5.3.200.0130.05014.61
5.3.190.0000.04014.58
5.3.180.0170.05014.56
5.3.170.0070.06714.63
5.3.160.0070.07314.63
5.3.150.0070.04314.59
5.3.140.0070.07714.70
5.3.130.0100.07714.46
5.3.120.0100.07714.70
5.3.110.0100.07314.54
5.3.100.0100.07014.08
5.3.90.0030.04714.06
5.3.80.0070.04714.01
5.3.70.0030.03713.93
5.3.60.0070.03313.94
5.3.50.0070.03314.11
5.3.40.0030.03713.83
5.3.30.0030.03713.96
5.3.20.0030.03313.63
5.3.10.0070.03013.80
5.3.00.0130.03313.60

preferences:
152.24 ms | 1394 KiB | 7 Q