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.4.10.0090.00020.44
8.3.140.0090.00616.66
8.3.130.0030.00618.48
8.3.120.0080.00418.55
8.3.110.0100.01020.94
8.3.100.0080.00016.38
8.3.90.0050.00326.77
8.3.80.0090.00019.36
8.3.70.0040.01118.10
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.260.0070.00716.51
8.2.250.0090.00018.60
8.2.240.0050.00317.22
8.2.230.0080.00022.58
8.2.220.0150.00024.06
8.2.210.0000.01426.77
8.2.200.0090.00018.88
8.2.190.0070.00716.58
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.300.0000.00918.10
8.1.290.0030.00630.84
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:
43.12 ms | 403 KiB | 5 Q