3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { protected static $val = 1; public static function setVal($value) { self::$val = $value; } public function val() { return self::$val; } } $t1 = new Test; $t2 = new Test; $t1::setVal(2); echo $t2->val();

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.0120.00519.39
8.5.20.0120.00818.02
8.5.10.0300.00816.52
8.5.00.0210.01116.68
8.4.180.0130.01019.45
8.4.170.0270.01219.75
8.4.160.0270.00720.49
8.4.150.0250.01219.66
8.4.140.0350.00917.68
8.4.130.0370.00717.25
8.4.120.0380.00917.46
8.4.110.0390.00917.45
8.4.100.0380.01017.80
8.4.90.0390.00917.77
8.4.80.0430.00817.73
8.4.70.0380.00817.33
8.4.60.0390.01017.66
8.4.50.0410.00817.65
8.4.40.0490.01017.38
8.4.30.0200.00317.71
8.4.20.0190.00517.61
8.4.10.0190.00417.43
8.3.300.0160.00618.42
8.3.290.0200.00818.13
8.3.280.0210.00717.96
8.3.270.0150.00716.59
8.3.260.0220.00716.60
8.3.250.0220.00816.26
8.3.240.0180.00516.49
8.3.230.0250.00916.51
8.3.220.0130.00716.34
8.3.210.0160.00316.30
8.3.200.0180.00516.16
8.3.190.0180.00716.55
8.3.180.0140.00816.45
8.3.170.0140.00716.58
8.3.160.0090.00516.62
8.3.150.0160.00416.49
8.3.140.0210.01016.29
8.3.130.0120.00416.56
8.3.120.0160.00716.46
8.3.110.0150.00716.59
8.3.100.0080.01116.38
8.3.90.0120.00616.46
8.3.80.0180.00716.55
8.3.70.0130.00616.30
8.3.60.0190.00416.57
8.3.50.0250.00616.60
8.3.40.0200.00717.59
8.3.30.0100.00517.73
8.3.20.0180.00717.56
8.3.10.0140.00717.21
8.3.00.0140.00617.71

preferences:
35.01 ms | 403 KiB | 5 Q