3v4l.org

run code in 300+ PHP versions simultaneously
<?php //::('\xF0\x9F\x98\x81') => '=?utf-8?Q?=F0=9F=91=8C?=' f($x) { return sprintf( '=?utf-8?Q?%s', str_replace('\x', '=', $x) ); } echo f('\xF0\x9F\x98\x81')

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.00.0070.08720.07
5.6.160.0030.04020.55
5.6.150.0030.08718.19
5.6.140.0070.05318.15
5.6.130.0130.07018.28
5.6.120.0030.09020.99
5.6.110.0100.05321.03
5.6.100.0030.07020.88
5.6.90.0030.04721.00
5.6.80.0030.03720.38
5.5.300.0030.06017.94
5.5.290.0070.06717.95
5.5.280.0070.05720.80
5.5.270.0100.07720.82
5.5.260.0000.08320.73
5.5.250.0030.04320.50
5.5.240.0270.07320.03

preferences:
146.79 ms | 1398 KiB | 7 Q