3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num1 = ord(substr(md5('password'),5,1)); $num2 = ord(substr(md5('password'),10,1)); $num3 = substr(md5('password'), 3, 1) - (ord('F')*100+ord('K')); echo $num1 echo $num2 echo $num3 ?>

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.4.280.0060.05012.37
5.4.270.0060.04912.37
5.4.260.0080.05212.37
5.4.250.0110.04912.36
5.4.240.0080.05412.36
5.4.230.0120.04112.36
5.4.220.0050.04012.36
5.4.210.0050.04412.36
5.4.200.0040.04212.36
5.4.190.0090.03612.36
5.4.180.0060.04012.35
5.4.170.0110.03412.36
5.4.160.0090.03712.36
5.4.150.0050.03912.35
5.4.140.0060.04112.05
5.4.130.0080.03912.02
5.4.120.0040.03811.99
5.4.110.0070.03711.99
5.4.100.0080.04811.99
5.4.90.0130.05711.99
5.4.80.0050.04211.99
5.4.70.0050.03911.98
5.4.60.0060.03711.99
5.4.50.0120.04111.98
5.4.40.0170.06111.98
5.4.30.0070.05311.97
5.4.20.0060.05311.96
5.4.10.0090.06411.97
5.4.00.0130.06211.46
5.3.280.0070.05212.71
5.3.270.0070.05412.73
5.3.260.0080.05312.71
5.3.250.0110.06112.72
5.3.240.0090.04312.72
5.3.230.0080.04012.71
5.3.220.0070.03812.68
5.3.210.0110.03712.68
5.3.200.0090.03612.68
5.3.190.0090.03712.68
5.3.180.0090.04212.67
5.3.170.0040.04312.67
5.3.160.0110.03612.68
5.3.150.0080.04012.68
5.3.140.0070.03912.66
5.3.130.0050.04212.66
5.3.120.0070.03912.66
5.3.110.0040.04912.65
5.3.100.0090.03912.12
5.3.90.0050.04812.09
5.3.80.0090.04112.07
5.3.70.0150.06012.07
5.3.60.0090.06112.06
5.3.50.0170.07912.00
5.3.40.0130.09212.00
5.3.30.0090.04711.93
5.3.20.0080.05311.70
5.3.10.0080.05111.67
5.3.00.0080.05211.66
5.2.170.0100.0419.16
5.2.160.0070.0439.16
5.2.150.0080.0469.16
5.2.140.0060.0509.15
5.2.130.0060.0619.11
5.2.120.0080.0529.11
5.2.110.0080.0409.12
5.2.100.0080.0419.12
5.2.90.0090.0359.12
5.2.80.0040.0529.11
5.2.70.0090.0469.11
5.2.60.0050.0419.06
5.2.50.0060.0329.04
5.2.40.0070.0309.01
5.2.30.0060.0348.99
5.2.20.0170.0718.98
5.2.10.0080.0308.91
5.2.00.0080.0308.77
5.1.60.0100.0258.05
5.1.50.0040.0308.05
5.1.40.0050.0288.04
5.1.30.0030.0348.38
5.1.20.0070.0378.40
5.1.10.0110.0278.13
5.1.00.0070.0418.14
5.0.50.0040.0236.61
5.0.40.0030.0226.46
5.0.30.0120.0486.28
5.0.20.0070.0466.25
5.0.10.0100.0436.23
5.0.00.0050.0496.21
4.4.90.0150.0454.78
4.4.80.0180.0454.75
4.4.70.0060.0274.76
4.4.60.0080.0224.76
4.4.50.0100.0204.77
4.4.40.0030.0434.71
4.4.30.0120.0384.76
4.4.20.0110.0304.84
4.4.10.0110.0394.85
4.4.00.0150.0584.76
4.3.110.0100.0384.67
4.3.100.0100.0714.67
4.3.90.0050.0274.64
4.3.80.0070.0484.58
4.3.70.0140.0384.63
4.3.60.0050.0234.63
4.3.50.0060.0244.62
4.3.40.0060.0664.54
4.3.30.0060.0183.28
4.3.20.0060.0183.27
4.3.10.0040.0193.23
4.3.00.0000.0235.72

preferences:
142.05 ms | 1394 KiB | 7 Q