3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static $x = 0; } class Test2 extends Test { // $x is inherited } class Test3 extends Test { // $x is NOT inherited public static $x = 3; } $x = 1; Test2::$x = &$x; var_dump(Test::$x, Test2::$x, Test3::$x); // int(1), int(1), int(3) ?>

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)
8.5.30.0080.00918.07
8.5.20.0100.00820.11
8.5.10.0140.00616.59
8.5.00.0130.00819.81
8.4.180.0150.00819.69
8.4.170.0150.00720.39
8.4.160.0130.01020.66
8.4.150.0070.00616.81
8.4.140.0160.00517.64
8.4.130.0130.00819.00
8.4.120.0130.00724.20
8.4.110.0050.00319.08
8.4.100.0120.00818.75
8.4.90.0100.01020.53
8.4.80.0150.00518.89
8.4.70.0100.01018.96
8.4.60.0130.00818.71
8.4.50.0140.00718.79
8.4.40.0140.00719.28
8.4.30.0090.01020.48
8.4.20.0370.00317.34
8.4.10.0390.00717.59
8.3.300.0120.00920.70
8.3.290.0090.00720.57
8.3.280.0140.00618.35
8.3.270.0100.01116.30
8.3.260.0110.00816.42
8.3.250.0090.00718.66
8.3.240.0120.00616.95
8.3.230.0130.00616.68
8.3.220.0060.00718.82
8.3.210.0050.00218.34
8.3.200.0060.00416.55
8.3.190.0110.00917.38
8.3.180.0090.00618.55
8.3.170.0150.00417.02
8.3.160.0040.00418.29
8.3.150.0160.01116.50
8.3.140.0330.01216.17
8.3.130.0240.01416.45
8.3.120.0360.00716.37
8.3.110.0280.01416.27
8.3.100.0120.00618.13
8.3.90.0390.00616.23
8.3.80.0400.00616.60
8.3.70.0360.01416.28
8.3.60.0360.00616.52
8.3.50.0390.00616.46
8.3.40.0300.01217.27
8.3.30.0220.01417.38
8.3.20.0280.00917.18
8.3.10.0230.01317.58
8.3.00.0110.01119.23
8.2.300.0100.01120.21
8.2.290.0050.00520.45
8.2.280.0080.01118.43
8.2.270.0110.00818.41
8.2.260.0330.00616.34
8.2.250.0250.01116.60
8.2.240.0330.00316.37
8.2.230.0350.00316.51
8.2.220.0300.00716.68
8.2.210.0310.00616.26
8.2.200.0330.00716.31
8.2.190.0230.01216.45
8.2.180.0250.01516.23
8.2.170.0350.00717.72
8.2.160.0340.00717.28
8.2.150.0320.00917.32
8.2.140.0480.00317.38
8.2.130.0280.01217.54
8.2.120.0330.00417.41
8.2.110.0280.00717.67
8.2.100.0260.01317.43
8.2.90.0340.00517.48
8.2.80.0300.01317.45
8.2.70.0330.00717.23
8.2.60.0250.01417.53
8.2.50.0290.01017.30
8.2.40.0220.01517.43
8.2.30.0290.00717.17
8.2.20.0340.01017.30
8.2.10.0280.01617.28
8.2.00.0290.00817.39
8.1.340.0120.00920.30
8.1.320.0060.01416.16

preferences:
42.77 ms | 842 KiB | 5 Q