3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* this is interned as a literal string */ $literal = 'o'; /* ord is not called, it's optimized away */ $ord = ord('o'); /* chr is called and returns the interned string */ $chr = chr($ord); var_dump($chr, is_literal($chr));

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.0040.01116.75
8.3.50.0070.01017.97
8.3.40.0090.00618.94
8.3.30.0110.00418.54
8.3.20.0040.00424.18
8.3.10.0030.00524.66
8.3.00.0000.00826.16
8.2.180.0060.00825.92
8.2.170.0040.01118.71
8.2.160.0070.00722.96
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00019.77
8.2.110.0030.00920.52
8.2.100.0060.00320.51
8.1.280.0100.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0070.00320.66
8.1.230.0030.00718.68

preferences:
41.23 ms | 400 KiB | 5 Q