3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(string $a) {} // Calling internal function that uses standard ZPP try { random_bytes([]); } catch(TypeError $e) { echo $e->getMessage() . "\n"; } // Calling internal function that uses custom ZPP try { min(""); } catch(TypeError $e) { echo $e->getMessage() . "\n"; } // Calling user-land function try { foo([]); } catch(TypeError $e) { echo $e->getMessage() . "\n"; }

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)
7.4.10.0030.01316.38
7.4.00.0070.01116.36
7.3.130.0040.01616.38
7.3.120.0100.00716.27
7.3.110.0080.00816.24
7.3.100.0130.00316.38
7.3.90.0120.00316.43
7.3.80.0060.01116.48
7.3.70.0080.01116.19
7.3.60.0040.01116.28
7.3.50.0040.01116.23
7.3.40.0090.00616.18
7.3.30.0110.00416.20
7.3.20.0030.01216.32
7.3.10.0060.01016.31
7.3.00.0180.00316.33
7.2.260.0080.00816.35
7.2.250.0030.01416.71
7.2.240.0040.01416.39
7.2.230.0160.01316.60
7.2.220.0040.01416.66
7.2.210.0090.00616.43
7.2.200.0140.00016.61
7.2.190.0080.01216.38
7.2.180.0060.00916.70
7.2.170.0090.00616.47
7.2.160.0090.00616.47
7.2.150.0110.00916.62
7.2.140.0090.00916.63
7.2.130.0080.00816.55
7.2.120.0080.00816.44
7.2.110.0140.00516.57
7.2.100.0070.01016.58
7.2.90.0090.00916.57
7.2.80.0080.01216.65
7.2.70.0070.01016.63
7.2.60.0040.01216.66
7.2.50.0080.00816.66
7.2.40.0000.01816.68
7.2.30.0070.01316.82
7.2.20.0130.00316.59
7.2.10.0130.00716.59
7.2.00.0140.00716.41

preferences:
53.2 ms | 403 KiB | 5 Q