3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output=[]; $output[test('t1')] = test('t2'); function test($str){ echo $str,PHP_EOL; return rand(10, 100); }

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.2.40.0130.00317.72
8.2.30.0150.00017.72
8.2.20.0030.00617.72
8.2.10.0110.00517.72
8.2.00.0030.00517.72
8.1.170.0080.00817.72
8.1.160.0150.00017.72
8.1.150.0120.00417.72
8.1.140.0100.00517.72
8.1.130.0110.00617.72
8.1.120.0140.00517.72
8.1.110.0140.00217.72
8.1.100.0050.01117.72
8.1.90.0130.00317.72
8.1.80.0100.00517.72
8.1.70.0120.00517.72
8.1.60.0150.00317.72
8.1.50.0070.01117.72
8.1.40.0100.00817.72
8.1.30.0060.01117.72
8.1.20.0120.00917.72
8.1.10.0110.00717.72
8.1.00.0150.00217.72
8.0.280.0170.00017.72
8.0.270.0110.00517.72
8.0.260.0090.00917.72
8.0.250.0080.00817.72
8.0.240.0110.00617.72
8.0.230.0130.00417.72
8.0.220.0130.00417.72
8.0.210.0140.00317.72
8.0.200.0150.00417.72
8.0.190.0100.00617.72
8.0.180.0100.00717.72
8.0.170.0130.00317.72
8.0.160.0090.00617.72
8.0.150.0160.00317.72
8.0.140.0150.00317.72
8.0.130.0180.00017.72
8.0.120.0090.00917.72
8.0.110.0100.00617.72
8.0.100.0080.00817.72
8.0.90.0110.00517.72
8.0.80.0080.00817.72
8.0.70.0120.00617.72
8.0.60.0130.00417.72
8.0.50.0110.00517.72
8.0.30.0110.00517.72
8.0.20.0170.00017.72
8.0.10.0100.00617.72
7.4.330.0220.00837.54
7.3.330.0140.00337.54
5.6.400.0130.00437.54

preferences:
23.56 ms | 403 KiB | 5 Q