3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = mt_rand(); echo($number); $hashed = bin2hex($number); echo($hashed); ?>

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.2.00.0030.00919.39
7.1.70.0000.00717.24
7.1.60.0100.01319.46
7.1.50.0070.01716.57
7.1.00.0070.07322.36
7.0.200.0390.00714.35
7.0.140.0100.07022.22
7.0.60.0070.07319.80
7.0.50.0100.03717.80
7.0.40.0170.08320.39
7.0.30.0270.08720.00
7.0.20.0330.07720.20
7.0.10.0070.08720.18
7.0.00.0100.07720.04
5.6.280.0130.06021.06
5.6.210.0070.08020.55
5.6.200.0070.08018.22
5.6.190.0130.07720.45
5.6.180.0300.08020.36
5.6.170.0430.04320.54
5.6.160.0070.08320.33
5.6.150.0070.06018.13
5.6.140.0030.04718.15
5.6.130.0070.08318.21
5.6.120.0000.05321.04
5.6.110.0100.08021.10
5.6.100.0100.03721.01
5.6.90.0100.08321.00
5.6.80.0100.08020.46
5.5.350.0030.03020.46
5.5.340.0100.07317.92
5.5.330.0070.07320.19
5.5.320.0030.05320.17
5.5.310.0130.04020.50
5.5.300.0070.05718.02
5.5.290.0100.06717.95
5.5.280.0070.08320.79
5.5.270.0130.07720.86
5.5.260.0270.07320.75
5.5.250.0100.08320.45
5.5.240.0330.07320.06
5.4.450.0600.06319.51
5.4.440.1000.03719.27
5.4.430.0070.05719.27
5.4.420.0830.06319.27
5.4.410.0900.05319.45
5.4.400.0870.05319.16
5.4.390.0130.05019.27
5.4.380.0330.06718.77
5.4.370.0500.06018.56
5.4.360.0270.05718.58
5.4.350.0570.04318.53
5.4.340.0400.07318.66
5.4.320.0050.03712.45
5.4.310.0040.04012.45
5.4.300.0080.04212.45
5.4.290.0110.03712.43
5.4.280.0070.03712.33
5.4.270.0050.03812.33
5.4.260.0050.04012.33
5.4.250.0040.04012.33
5.4.240.0080.05112.33
5.4.230.0090.05212.32
5.4.220.0050.05412.32
5.4.210.0100.04912.32
5.4.200.0080.05312.32
5.4.190.0090.05012.32
5.4.180.0050.05412.32
5.4.170.0090.03312.33
5.4.160.0090.03312.33
5.4.150.0040.03912.32
5.4.140.0030.03912.00
5.4.130.0030.03811.99
5.4.120.0090.03711.95
5.4.110.0070.03411.95
5.4.100.0030.04211.95
5.4.90.0040.04011.95
5.4.80.0060.03711.95
5.4.70.0080.04211.94
5.4.60.0100.06611.94
5.4.50.0070.04911.95
5.4.40.0060.03711.93
5.4.30.0040.03711.92
5.4.20.0080.03311.93
5.4.10.0040.04211.93
5.4.00.0090.03311.43
5.3.290.0060.04812.80
5.3.280.0020.04112.71
5.3.270.0060.03912.72
5.3.260.0060.04512.71
5.3.250.0070.03612.72
5.3.240.0060.03712.72
5.3.230.0060.03612.71
5.3.220.0060.03512.68
5.3.210.0080.03812.68
5.3.200.0060.03712.68
5.3.190.0050.03812.68
5.3.180.0030.03812.68
5.3.170.0070.03412.67
5.3.160.0030.03912.67
5.3.150.0070.04112.67
5.3.140.0060.05212.66
5.3.130.0050.04412.66
5.3.120.0080.04212.66
5.3.110.0080.03912.66
5.3.100.0040.03812.12
5.3.90.0060.04312.08
5.3.80.0030.03912.07
5.3.70.0030.03912.08
5.3.60.0050.03612.06
5.3.50.0050.03612.00
5.3.40.0070.03512.00
5.3.30.0050.03611.94
5.3.20.0070.03411.72
5.3.10.0050.03611.69
5.3.00.0060.03811.68
5.2.170.0020.0329.18
5.2.160.0040.0309.18
5.2.150.0050.0309.18
5.2.140.0060.0289.18
5.2.130.0080.0269.14
5.2.120.0040.0299.14
5.2.110.0080.0269.14
5.2.100.0040.0289.14
5.2.90.0050.0299.14
5.2.80.0050.0309.13
5.2.70.0000.0359.13
5.2.60.0060.0349.09
5.2.50.0080.0389.06
5.2.40.0030.0329.03
5.2.30.0040.0349.01
5.2.20.0030.0298.99
5.2.10.0050.0268.94
5.2.00.0050.0298.79
5.1.60.0040.0248.08
5.1.50.0030.0258.07
5.1.40.0040.0248.05
5.1.30.0060.0248.41
5.1.20.0070.0288.42
5.1.10.0080.0368.15
5.1.00.0050.0308.15
5.0.50.0060.0226.63
5.0.40.0050.0226.49
5.0.30.0030.0336.30
5.0.20.0070.0206.27
5.0.10.0030.0206.24
5.0.00.0020.0336.23
4.4.90.0050.0144.78
4.4.80.0060.0184.75
4.4.70.0040.0154.75
4.4.60.0030.0154.76
4.4.50.0040.0144.77
4.4.40.0020.0264.71
4.4.30.0020.0154.76
4.4.20.0010.0174.84
4.4.10.0010.0164.85
4.4.00.0020.0264.76
4.3.110.0020.0154.67
4.3.100.0040.0144.67
4.3.90.0020.0154.63
4.3.80.0030.0234.59
4.3.70.0020.0154.63
4.3.60.0030.0144.63
4.3.50.0020.0164.63
4.3.40.0020.0304.53
4.3.30.0030.0213.29
4.3.20.0000.0233.27
4.3.10.0030.0163.23
4.3.00.0170.01710.55

preferences:
31.96 ms | 401 KiB | 5 Q