3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Parent { public static $prop; } class Child extends Parent { } Parent::prop = "first"; $parent = new Parent; echo "parent 1: " . $parent::prop; Child::prop = "second"; $child = new Child; echo "child 1: " . $child::prop; echo "parent 2: " . $parent::prop;

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.5.120.0130.06317.27
5.5.110.0100.07317.25
5.5.100.0130.06717.14
5.5.90.0070.07017.16
5.5.80.0070.07717.16
5.5.70.0170.06717.19
5.5.60.0100.04717.20
5.5.50.0070.04717.22
5.5.40.0030.06017.21
5.5.30.0000.08017.21
5.5.20.0030.06717.16
5.5.10.0000.04717.26
5.5.00.0100.04317.19
5.4.280.0100.06019.21
5.4.270.0030.07319.13
5.4.260.0000.08319.11
5.4.250.0170.07019.02
5.4.240.0030.08018.98
5.4.230.0100.04719.00
5.4.220.0100.04719.07
5.4.210.0200.06718.96
5.4.200.0100.07019.09
5.4.190.0100.05318.94
5.4.180.0070.04319.02
5.4.170.0070.08018.88
5.4.160.0100.06318.93
5.4.150.0130.05318.97
5.4.140.0030.04716.34
5.4.130.0130.05016.17
5.4.120.0070.04716.30
5.4.110.0100.07316.41
5.4.100.0070.07316.37
5.4.90.0070.07316.52
5.4.80.0100.06716.28
5.4.70.0200.03316.32
5.4.60.0130.06316.31
5.4.50.0070.06716.25
5.4.40.0070.07016.26
5.4.30.0100.07016.45
5.4.20.0030.05016.49
5.4.10.0000.04316.34
5.4.00.0070.05315.92
5.3.280.0100.05014.52
5.3.270.0000.07714.46
5.3.260.0100.04314.68
5.3.250.0100.04314.55
5.3.240.0030.06014.46
5.3.230.0030.06714.41
5.3.220.0030.05014.48
5.3.210.0030.04014.50
5.3.200.0070.05014.39
5.3.190.0070.04314.47
5.3.180.0070.04314.55
5.3.170.0070.05714.53
5.3.160.0170.06314.39
5.3.150.0170.06314.38
5.3.140.0030.06014.38
5.3.130.0130.04714.46
5.3.120.0070.07714.51
5.3.110.0030.05714.46
5.3.100.0100.07314.01
5.3.90.0000.04313.96
5.3.80.0100.03713.97
5.3.70.0030.04713.79
5.3.60.0070.04013.95
5.3.50.0070.05014.02
5.3.40.0070.07713.82
5.3.30.0030.07313.84
5.3.20.0000.05713.68
5.3.10.0100.03013.73
5.3.00.0030.05313.59

preferences:
139.11 ms | 1394 KiB | 7 Q