3v4l.org

run code in 300+ PHP versions simultaneously
<?php $st = chr(84).chr(66).chr(78).chr(80).chr(36).chr(0).chr(0).chr(0).chr(0).chr(0).chr(0).chr(0) echo(st); function rpc_int_unserialize(&$str, $size = 4) { $res = 0; for ($i = $size - 1; $i >= 0; $i--) { echo($str{$i}); echo("\n"); echo("i"); echo("\n"); $res = ($res * 256) + ord($str{$i}); }; $str = substr($str, $size); return $res; } $head = "qwerty"; echo(rpc_int_unserialize($head)); echo(rpc_int_unserialize($head)); echo($head); ?>

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)
5.6.140.0070.08318.18
5.6.130.0100.05018.18
5.6.120.0030.08320.92
5.6.110.0030.05721.14
5.6.100.0100.08320.98
5.6.90.0100.08720.96
5.6.80.0100.06020.36
5.5.300.0070.08017.98
5.5.290.0100.07318.08
5.5.280.0000.05320.87
5.5.270.0130.08320.62
5.5.260.0100.08320.86
5.5.250.0130.07320.46
5.5.240.0030.06320.23
5.4.450.0700.05719.57
5.4.440.0700.05719.58
5.4.430.0900.06319.68
5.4.420.0600.05719.18
5.4.410.0670.05019.46
5.4.400.0670.04718.97
5.4.390.0700.04719.16
5.4.380.0730.04019.24
5.4.370.0600.05319.06
5.4.360.0530.06019.15
5.4.350.0700.05018.86
5.4.340.0670.05019.11
5.4.320.0570.06319.25
5.4.310.0570.06019.27
5.4.300.0600.06319.03
5.4.290.0700.05319.26
5.4.280.0730.05019.25
5.4.270.0730.04719.30
5.4.260.0700.04719.36
5.4.250.0730.08019.34
5.4.240.0970.06718.85
5.4.230.0830.05019.22
5.4.220.0530.05019.24
5.4.210.0600.05018.96
5.4.200.0070.05719.10
5.4.190.0130.05018.85
5.4.180.0730.05319.23
5.4.170.0630.04319.26
5.4.160.0670.06319.11
5.4.150.0600.05319.11
5.4.140.0170.04016.44
5.4.130.0170.05716.31
5.4.120.0630.04016.52
5.4.110.0300.06316.52
5.4.100.0030.05316.42
5.4.90.0100.04716.58
5.4.80.0300.05016.50
5.4.70.0330.06316.27
5.4.60.0030.05316.17
5.4.50.0000.07316.16
5.4.40.0200.03716.43
5.4.30.0370.06016.51
5.4.20.0030.07716.52

preferences:
141.31 ms | 1398 KiB | 7 Q