3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = function (string $bar) { if (is_trusted($bar)) { echo "it's trusted!\n"; } else { echo "it can't be trusted!\n"; } }; $baz = trim(' literal string that gets manipulated '); $foo('literal string not manipulated'); $foo($baz);

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.3.60.0150.00418.43
8.3.50.0100.00318.00
8.3.40.0140.00019.17
8.3.30.0090.00918.55
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0070.00026.16
8.2.180.0090.01225.92
8.2.170.0090.00619.09
8.2.160.0100.00722.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0030.00722.01
8.2.100.0050.00520.28
8.1.280.0070.01125.92
8.1.270.0000.00823.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.02
8.1.230.0000.01019.01

preferences:
42.05 ms | 400 KiB | 5 Q