3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { use function random_int; var_dump(random_int(1, 100)); var_dump(\random_int(1, 100)); } namespace Foo { function random_int(int $min, int $max) : int { return 4; } }

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.2.00.0000.01519.04
7.1.70.0070.00317.15
7.1.60.0090.01619.44
7.1.50.0040.01816.89
7.1.00.0030.09722.27
7.0.200.0060.00616.74
7.0.60.0070.03719.86
7.0.50.0070.06017.88
7.0.40.0100.04720.20
7.0.30.0370.08020.12
7.0.20.0300.07320.26
7.0.10.0170.08020.07
7.0.00.0100.04720.22
5.6.280.0000.04720.78
5.6.210.0100.07020.72
5.6.200.0130.05718.16
5.6.190.0100.08720.63
5.6.180.0230.07720.44
5.6.170.0200.04020.56
5.6.160.0130.07720.56
5.6.150.0100.03318.16
5.6.140.0000.04318.25
5.6.130.0030.04318.15
5.6.120.0100.05320.99
5.6.110.0070.08020.98
5.6.100.0100.05720.95
5.6.90.0130.08021.10
5.6.80.0130.06720.48
5.5.350.0100.08020.32
5.5.340.0030.04717.96
5.5.330.0200.06720.38
5.5.320.0500.06320.35
5.5.310.0230.03320.32
5.5.300.0070.04017.96
5.5.290.0030.05318.04
5.5.280.0170.07320.84
5.5.270.0070.03720.95
5.5.260.0000.06320.87
5.5.250.0230.05720.59
5.5.240.0300.07320.28

preferences:
36.6 ms | 403 KiB | 5 Q