3v4l.org

run code in 300+ 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.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.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.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.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:
40.42 ms | 403 KiB | 5 Q