3v4l.org

run code in 300+ PHP versions simultaneously
<?php function helloWorld(string $username) : string { return "Hello world {$username}"; } echo helloWorld('Thomas')

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.0.20.0400.07020.16
7.0.10.0000.04720.09
7.0.00.0070.05320.09
5.6.170.0330.06720.66
5.6.160.0130.07320.54
5.6.150.0030.05018.21
5.6.140.0030.08318.15
5.6.130.0100.07318.12
5.6.120.0130.03321.00
5.6.110.0170.07020.96
5.6.100.0070.08721.02
5.6.90.0070.04321.03
5.6.80.0030.07720.38
5.5.310.0370.05720.30
5.5.300.0100.04717.94
5.5.290.0130.03717.99
5.5.280.0100.05320.77
5.5.270.0030.09020.76
5.5.260.0130.07720.79
5.5.250.0130.07720.79
5.5.240.0030.07020.18

preferences:
137.9 ms | 1394 KiB | 7 Q