3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { function print_r($x) { print 'No print_r for you!'.PHP_EOL; } } namespace A { $x = []; print_r($x); } // It looks like it, but // A\B is not a child of A!! namespace A\B { // Just print_r for you, with fallback print_r($x); } ?>

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.10.0100.01016.43
8.5.00.0140.00820.05
8.4.150.0010.00114.05
8.4.140.0100.01417.67
8.4.130.0110.00917.86
8.4.120.0120.00820.79
8.4.110.0110.01022.21
8.4.100.0110.00918.05
8.4.90.0080.00918.46
8.4.80.0120.00919.55
8.4.70.0120.00817.93
8.4.60.0150.00418.73
8.4.50.0130.00719.61
8.4.40.0380.00517.16
8.4.30.0400.00817.30
8.4.20.0410.00717.39
8.4.10.0420.01017.33
8.3.280.0120.00820.10
8.3.270.0100.00916.57
8.3.260.0030.00616.75
8.3.250.0100.00818.85
8.3.240.0090.01016.48
8.3.230.0090.00916.46
8.3.220.0040.00317.18
8.3.210.0050.00316.44
8.3.200.0040.00416.60
8.3.190.0130.00616.79
8.3.180.0140.00619.06
8.3.170.0390.00916.29
8.3.160.0190.00716.29
8.3.150.0180.00316.43
8.3.140.0150.00516.55
8.3.130.0130.00516.42
8.3.120.0210.00216.27
8.3.110.0140.00416.71
8.3.100.0380.00816.30
8.3.90.0370.00716.58
8.3.80.0390.01016.66
8.3.70.0300.01016.43
8.3.60.0380.00516.54
8.3.50.0320.00416.62
8.3.40.0290.00617.21
8.3.30.0350.00617.34
8.3.20.0280.01117.21
8.3.10.0290.00817.52
8.3.00.0210.00417.16
8.2.290.0110.00820.41
8.2.280.0110.00818.18
8.2.270.0330.00616.40
8.2.260.0300.00916.27
8.2.250.0290.00816.22
8.2.240.0280.00716.28
8.2.230.0250.00916.59
8.2.220.0200.00516.70
8.2.210.0190.00616.35
8.2.200.0180.00616.56
8.2.190.0130.00516.51
8.2.180.0140.00816.39
8.2.170.0120.00717.55
8.2.160.0160.00517.53
8.2.150.0160.00317.48
8.2.140.0270.01117.34
8.2.130.0350.00917.45
8.2.120.0270.01417.62
8.2.110.0380.00517.24
8.2.100.0250.00817.51
8.2.90.0340.00817.55
8.2.80.0320.00817.10
8.2.70.0230.00817.18
8.2.60.0160.00417.14
8.2.50.0150.00417.54
8.2.40.0290.00817.25
8.2.30.0250.01217.36
8.2.20.0310.01017.51
8.2.10.0300.01217.45
8.2.00.0350.00617.45
8.1.320.0040.00816.14

preferences:
25.55 ms | 403 KiB | 5 Q