3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass { public static $prop; } class ChildClass extends ParentClass { } ParentClass::prop = "first"; $parent = new ParentClass; echo "parent 1: " . $parent::prop; ChildClass::prop = "second"; $child = new ChildClass; 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.0030.07717.43
5.5.110.0070.05717.32
5.5.100.0070.06017.23
5.5.90.0170.06317.23
5.5.80.0070.08017.24
5.5.70.0030.06717.34
5.5.60.0030.07317.27
5.5.50.0070.06717.16
5.5.40.0030.07017.28
5.5.30.0070.06717.22
5.5.20.0100.07317.33
5.5.10.0030.08317.19
5.5.00.0100.07317.15
5.4.280.0030.05319.04
5.4.270.0070.06319.06
5.4.260.0130.07319.11
5.4.250.0100.07319.00
5.4.240.0130.07319.03
5.4.230.0070.04319.13
5.4.220.0070.06719.09
5.4.210.0100.07719.09
5.4.200.0030.06319.13
5.4.190.0100.06719.02
5.4.180.0070.06719.00
5.4.170.0070.05319.04
5.4.160.0030.07319.04
5.4.150.0100.07319.10
5.4.140.0000.06316.38
5.4.130.0070.05016.48
5.4.120.0100.06716.59
5.4.110.0130.03716.44
5.4.100.0000.08316.35
5.4.90.0030.04316.54
5.4.80.0130.04716.48
5.4.70.0170.06716.44
5.4.60.0030.07316.36
5.4.50.0100.07016.38
5.4.40.0130.06716.45
5.4.30.0030.07316.43
5.4.20.0070.06316.27
5.4.10.0130.06316.42
5.4.00.0030.07715.81
5.3.280.0100.06014.44
5.3.270.0100.06014.64
5.3.260.0130.05714.47
5.3.250.0130.07014.45
5.3.240.0100.05014.64
5.3.230.0170.06714.66
5.3.220.0000.06014.58
5.3.210.0000.04314.61
5.3.200.0030.07714.63
5.3.190.0100.07714.61
5.3.180.0030.05714.60
5.3.170.0100.07014.55
5.3.160.0070.07314.66
5.3.150.0100.07714.51
5.3.140.0030.07714.66
5.3.130.0170.06714.58
5.3.120.0070.08014.57
5.3.110.0100.06014.53
5.3.100.0000.06714.05
5.3.90.0070.04014.22
5.3.80.0070.05714.05
5.3.70.0100.07314.03
5.3.60.0100.05314.01
5.3.50.0070.05314.16
5.3.40.0030.03714.02
5.3.30.0100.02713.95
5.3.20.0030.03313.75
5.3.10.0030.03313.68
5.3.00.0070.03013.62

preferences:
142.59 ms | 1398 KiB | 7 Q