3v4l.org

run code in 500+ PHP versions simultaneously
<?php ini_set('max_execution_time', 1); set_error_handler(null, E_ALL); class A { function __get($name) { return $name; } } global $a; $a = new A; function shutdown() { global $a; // Warning: Undefined property: A::$foo ... var_dump($a->foo); } register_shutdown_function('shutdown'); // Try to trigger "Fatal error: Maximum execution time of 1 second exceeded" // within the A::__get() method. for ($i = 0; $i < 100000000; $i++) { $a->foo; }

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.90.0111.00416.89
8.5.80.0141.00516.91
8.5.70.0061.00318.68
8.5.60.0121.00316.89
8.5.50.0041.00516.80
8.5.30.0081.00919.48
8.5.20.0101.00820.03
8.5.10.0071.01516.80
8.5.00.0111.01019.84
8.4.240.0161.00319.47
8.4.230.0121.00919.57
8.4.220.0101.00319.61
8.4.210.0111.00921.28
8.4.180.0111.01019.70
8.4.170.0131.00823.84
8.4.160.0141.00723.93
8.4.150.0080.50416.96
8.4.140.0101.01017.35
8.4.130.0121.00918.91
8.4.120.0101.00824.09
8.4.110.0121.00722.50
8.4.100.0111.00917.96
8.4.90.0151.00317.65
8.4.80.0091.00920.51
8.4.70.0101.00617.90
8.4.60.0101.00617.64
8.4.50.0101.00924.27
8.4.40.0031.01417.55
8.4.30.0031.01620.81
8.4.20.0071.01519.64
8.4.10.0031.01019.65
8.3.330.0161.00418.30
8.3.320.0131.00118.43
8.3.310.0101.00718.33
8.3.300.0111.00922.55
8.3.290.0131.00818.29
8.3.280.0141.01220.07
8.3.270.0121.00616.47
8.3.260.0101.00816.83
8.3.250.0121.00618.88
8.3.240.0111.00716.85
8.3.230.0121.00616.64
8.3.220.0101.00917.18
8.3.210.0121.00616.66
8.3.200.0111.00716.60
8.3.190.0061.00316.86
8.3.180.0101.00718.34
8.3.170.0071.01118.87
8.3.160.0071.01217.22
8.3.150.0071.01017.17
8.3.140.0031.01117.21
8.3.130.0131.00518.64
8.3.120.0001.01320.86
8.3.110.0071.00716.64
8.3.100.0071.00616.63
8.3.90.0201.02926.77
8.3.80.0331.00526.77
8.3.70.0201.00626.77
8.3.60.0431.00926.77
8.3.50.0331.00926.77
8.3.40.0301.00826.77
8.3.30.0131.01126.77
8.3.20.0101.01426.77
8.3.10.0171.01126.77
8.3.00.0271.00826.77
8.2.320.0121.00718.07
8.2.310.0131.00718.07
8.2.300.0101.01118.06
8.2.290.0111.00820.45
8.2.280.0081.00120.32
8.2.270.0101.01017.17
8.2.260.0101.01116.48
8.2.250.0031.02318.28
8.2.240.0101.01018.86
8.2.230.0171.00720.94
8.2.220.0031.01237.54
8.2.210.0131.01826.77
8.2.200.0231.00826.77
8.2.190.0171.01426.77
8.2.180.0201.01226.77
8.2.170.0301.00826.77
8.2.160.0271.01526.77
8.2.150.0331.01626.77
8.2.140.0171.00926.77
8.2.130.0171.00926.77
8.2.120.0131.01226.77
8.2.110.0131.01326.77
8.2.100.0471.01326.77
8.2.90.0171.00926.77
8.2.80.0331.00526.77
8.2.70.0131.00926.77
8.2.60.0201.00626.77
8.2.50.0371.01026.77
8.2.40.0271.01726.77
8.2.30.0131.01126.77
8.2.20.0201.00526.77
8.2.10.0101.01326.77
8.2.00.0071.01526.77
8.1.340.0091.01120.02
8.1.330.0101.00716.55
8.1.320.0131.00616.40
8.1.310.0071.01416.62
8.1.300.0131.01016.27
8.1.290.0231.01226.77
8.1.280.0171.01026.77
8.1.270.0301.00826.77
8.1.260.0331.01126.77
8.1.250.0331.00626.77
8.1.240.0131.01126.77
8.1.230.0171.01526.77
8.1.220.0131.00926.77
8.1.210.0171.00826.77
8.1.200.0201.01226.77
8.1.190.0101.01126.77
8.1.180.0201.02126.77
8.1.170.0231.00726.77
8.1.160.0131.01026.77
8.1.150.0271.01326.77
8.1.140.0241.01926.77
8.1.130.0131.00826.77
8.1.120.0201.01726.77
8.1.110.0201.01626.77
8.1.100.0401.02026.77
8.1.90.0231.01126.77
8.1.80.0231.00626.77
8.1.70.0131.01326.77
8.1.60.0131.01426.77
8.1.50.0171.01126.77
8.1.40.0231.00926.77
8.1.30.0201.01026.77
8.1.20.0331.00926.77
8.1.10.0201.00326.77
8.1.00.0271.01926.77

preferences:
54.67 ms | 1046 KiB | 5 Q