3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $var = 'Hello'; function hassle($str) { preg_replace('/[^[:alnum:]]/', '', $str); $chars = str_split($str); shuffle($chars); return implode('', $chars); } echo hassle($var); } catch (Exception $e) { }

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.4.00.0090.00915.20
7.3.120.0050.01215.04
7.3.110.0060.01114.99
7.3.100.0110.00615.16
7.3.90.0100.00315.14
7.3.80.0070.00815.05
7.3.70.0050.00914.92
7.3.60.0070.00914.99
7.3.50.0100.00314.89
7.3.40.0050.00915.05
7.3.30.0050.01014.96
7.3.20.0060.01116.82
7.3.10.0060.00616.81
7.3.00.0040.00916.89
7.2.250.0050.01214.98
7.2.240.0100.00814.94
7.2.230.0040.01215.04
7.2.220.0020.01114.96
7.2.210.0050.01115.16
7.2.200.0090.00415.25
7.2.190.0070.00515.14
7.2.180.0070.00815.22
7.2.170.0030.01114.88
7.2.00.0060.00619.52
7.1.330.0090.00516.02
7.1.320.0040.00915.92
7.1.310.0080.00516.01
7.1.300.0040.00615.81
7.1.290.0020.01015.83
7.1.280.0080.00215.82
7.1.270.0030.01216.04
7.1.260.0020.01115.98
7.1.70.0030.00917.33
7.1.60.0140.01119.20
7.1.50.0030.01416.99
7.1.00.0000.03722.38
7.0.200.0040.00416.62
7.0.140.0100.06321.99
7.0.100.0100.07719.91
7.0.90.0200.04019.90
7.0.80.0170.06319.96
7.0.70.0030.08719.90
7.0.60.0030.08719.98
7.0.50.0400.07320.30
7.0.40.0030.08320.18
7.0.30.0200.07020.00
7.0.20.0170.05720.03
7.0.10.0130.07020.14
7.0.00.0030.07720.09
5.6.280.0030.07321.12
5.6.250.0170.06320.76
5.6.240.0100.08020.58
5.6.230.0070.06020.50
5.6.220.0100.08320.67
5.6.210.0000.08020.75
5.6.200.0100.08721.15
5.6.190.0230.07021.00
5.6.180.0130.07321.18
5.6.170.0000.05021.02
5.6.160.0000.09721.17
5.6.150.0030.05321.03
5.6.140.0070.08021.08
5.6.130.0070.08321.02
5.6.120.0100.08321.14
5.6.110.0070.08321.04
5.6.100.0130.08021.09
5.6.90.0030.08321.09
5.6.80.0170.06320.35
5.6.70.0070.07720.46
5.6.60.0100.08020.51
5.6.50.0100.08020.47
5.6.40.0100.04320.30
5.6.30.0070.08020.43
5.6.20.0100.07320.30
5.6.10.0100.04020.40
5.6.00.0100.07720.35
5.5.380.0070.08020.36
5.5.370.0000.09020.43
5.5.360.0100.06720.44
5.5.350.0100.06320.33
5.5.340.0130.08020.79
5.5.330.0130.07720.94
5.5.320.0030.08720.91
5.5.310.0170.07320.62
5.5.300.0170.06720.87
5.5.290.0100.07720.83
5.5.280.0070.08020.89
5.5.270.0200.07720.91
5.5.260.0130.07720.63
5.5.250.0100.08020.45
5.5.240.0100.08020.29
5.5.230.0130.07720.29
5.5.220.0070.07720.11
5.5.210.0130.06720.21
5.5.200.0130.07320.16
5.5.190.0070.07720.23
5.5.180.0100.07020.13
5.5.160.0070.07720.13
5.5.150.0130.06320.18
5.5.140.0070.06720.28
5.5.130.0070.05020.11
5.5.120.0000.08720.18
5.5.110.0070.05020.27
5.5.100.0100.07720.10
5.5.90.0000.04320.07
5.5.80.0070.03719.98
5.5.70.0070.06019.98
5.5.60.0100.07720.16
5.5.50.0030.04319.95
5.5.40.0000.08320.03
5.5.30.0200.06020.00
5.5.20.0070.08320.03
5.5.10.0070.08020.08
5.5.00.0030.08320.05
5.4.450.0070.06719.23
5.4.440.0070.05319.56
5.4.430.0100.06319.22
5.4.420.0070.07019.44
5.4.410.0200.06719.25
5.4.400.0030.07718.90
5.4.390.0070.07019.04
5.4.380.0100.07719.04
5.4.370.0130.07019.18
5.4.360.0170.06719.10
5.4.350.0000.08019.04
5.4.340.0070.06019.17
5.4.320.0100.07718.88
5.4.310.0070.04718.86
5.4.300.0230.06019.13
5.4.290.0030.07718.95
5.4.280.0200.06719.05
5.4.270.0000.06319.09
5.4.260.0070.07718.86
5.4.250.0100.04019.03
5.4.240.0030.06719.13
5.4.230.0130.06318.84
5.4.220.0100.07319.23
5.4.210.0030.07719.16
5.4.200.0030.08319.22
5.4.190.0170.06018.85
5.4.180.0130.06719.11
5.4.170.0100.07019.11
5.4.160.0000.08019.01
5.4.150.0100.06719.14
5.4.140.0070.06016.39
5.4.130.0030.07016.49
5.4.120.0070.04316.54
5.4.110.0070.04316.54
5.4.100.0130.07016.54
5.4.90.0000.07716.41
5.4.80.0130.03716.36
5.4.70.0100.04716.36
5.4.60.0070.07016.33
5.4.50.0030.06716.36
5.4.40.0030.04716.36
5.4.30.0030.06716.30
5.4.20.0100.06716.36
5.4.10.0070.04316.38
5.4.00.0030.07315.79
5.3.290.0030.08014.64
5.3.280.0130.06314.62
5.3.270.0030.07714.74
5.3.260.0170.03314.58
5.3.250.0100.07714.55
5.3.240.0030.07714.54
5.3.230.0030.05014.70
5.3.220.0070.07714.63
5.3.210.0070.06014.50
5.3.200.0170.05714.70
5.3.190.0000.07314.63
5.3.180.0170.06714.55
5.3.170.0100.07014.54
5.3.160.0030.07314.68
5.3.150.0070.07714.54
5.3.140.0070.07714.61
5.3.130.0070.06014.63
5.3.120.0070.07714.61
5.3.110.0030.07714.56
5.3.100.0030.07014.16
5.3.90.0000.04714.02
5.3.80.0030.04014.16
5.3.70.0000.04014.00
5.3.60.0070.04014.07
5.3.50.0070.07713.96
5.3.40.0070.06014.04
5.3.30.0100.06713.96
5.3.20.0070.06013.82
5.3.10.0000.05013.66
5.3.00.0030.07713.71
5.2.170.0030.05311.82
5.2.160.0030.04011.82
5.2.150.0130.05011.82
5.2.140.0030.06311.82
5.2.130.0030.06711.82
5.2.120.0170.05011.82
5.2.110.0070.05711.82
5.2.100.0100.05711.82
5.2.90.0070.05711.82
5.2.80.0030.05711.82
5.2.70.0070.06011.82
5.2.60.0070.03311.82
5.2.50.0030.05711.82
5.2.40.0030.06011.82
5.2.30.0000.06311.82
5.2.20.0000.06311.82
5.2.10.0070.04311.82
5.2.00.0000.05711.82
5.1.60.0070.05011.82
5.1.50.0070.04311.82
5.1.40.0000.06011.82
5.1.30.0070.05311.82
5.1.20.0100.05311.82
5.1.10.0100.05011.82
5.1.00.0030.06011.82
5.0.50.0030.04311.82
5.0.40.0000.04311.82
5.0.30.0030.06011.82
5.0.20.0030.03311.82
5.0.10.0070.04011.82
5.0.00.0000.05011.82
4.4.90.0030.03711.82
4.4.80.0070.03011.82
4.4.70.0030.03011.82
4.4.60.0030.02711.82
4.4.50.0070.03011.82
4.4.40.0030.05311.82
4.4.30.0100.02711.82
4.4.20.0000.02311.82
4.4.10.0030.03011.82
4.4.00.0030.05011.82
4.3.110.0030.03311.82
4.3.100.0030.03311.82
4.3.90.0030.03311.82
4.3.80.0000.04711.82
4.3.70.0030.03311.82
4.3.60.0000.03711.82
4.3.50.0070.03011.82
4.3.40.0000.05711.82
4.3.30.0000.03711.82
4.3.20.0000.03311.82
4.3.10.0000.03311.82
4.3.00.0000.03711.82

preferences:
39 ms | 401 KiB | 5 Q