3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = str_split(bin2hex(random_bytes(32)), 2); array_unshift($x, ''); echo implode('\\x', $x), "\n";

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.60.0110.00316.86
7.2.00.0030.01019.21
7.1.100.0100.00618.16
7.1.70.0060.00617.15
7.1.60.0130.01020.03
7.1.50.0150.00316.78
7.1.00.0070.07322.45
7.0.200.0000.00816.67
7.0.60.0070.04021.63
7.0.50.0070.04017.82
7.0.40.0230.07020.21
7.0.30.0200.05320.17
7.0.20.0300.07320.33
7.0.10.0130.08320.30
7.0.00.0170.08020.16
5.6.280.0070.07021.06
5.6.210.0030.07720.44
5.6.200.0070.05718.08
5.6.190.0030.09320.33
5.6.180.0330.07320.27
5.6.170.0200.08320.49
5.6.160.0030.04020.50
5.6.150.0030.04018.22
5.6.140.0100.06718.11
5.6.130.0030.09018.23
5.6.120.0070.07720.97
5.6.110.0130.07721.11
5.6.100.0130.08020.97
5.6.90.0000.04320.98
5.6.80.0000.08720.53
5.5.350.4270.03320.40
5.5.340.0130.08018.02
5.5.330.0130.07720.27
5.5.320.0230.06720.20
5.5.310.0400.06320.26
5.5.300.0030.04017.96
5.5.290.0130.06317.96
5.5.280.0070.04020.73
5.5.270.0070.05720.71
5.5.260.0200.07320.79
5.5.250.0070.03720.68
5.5.240.0130.06320.25
5.4.450.0170.05719.46
5.4.440.0170.05019.48
5.4.430.0170.05019.12
5.4.420.0470.04019.11
5.4.410.0400.04319.25
5.4.400.0400.04319.16
5.4.390.0330.06318.93
5.4.380.0300.05019.07
5.4.370.0200.06019.19
5.4.360.0400.05719.06
5.4.350.0270.05019.05
5.4.340.0030.07019.22
5.4.320.0370.07018.96
5.4.310.0400.05319.22
5.4.300.0600.04719.05
5.4.290.0370.05319.07
5.4.280.0400.05019.12
5.4.270.0330.05719.05
5.4.260.0430.05319.22
5.4.250.0470.04718.90
5.4.240.0400.04318.96
5.4.230.0370.04319.11
5.4.220.0230.06319.09
5.4.210.0430.05019.06
5.4.200.0470.05016.72
5.4.190.0330.06718.93
5.4.180.0230.05019.18
5.4.170.0300.06719.09
5.4.160.0270.04719.18
5.4.150.0130.05319.14
5.4.140.0230.05716.27
5.4.130.0200.04716.45
5.4.120.0200.04716.28
5.4.110.0130.05316.17
5.4.100.0200.05016.33
5.4.90.0100.05716.14
5.4.80.0270.04316.42
5.4.70.0170.05316.46
5.4.60.0230.04016.29
5.4.50.0130.05016.18
5.4.40.0170.05316.18
5.4.30.0200.05016.23
5.4.20.0130.05716.18
5.4.10.0270.04016.32
5.4.00.0070.05315.89

preferences:
35.78 ms | 401 KiB | 5 Q