3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 38; $c = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567890-_'; for ($x=$s=0; $x<$n; $x++) { $c = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567890'; if (($x<$n) && ($x > 0) && ($s < 2)) { $c .= '-_'; } $r .= substr($c, mt_rand(0, strlen($c) - 1), 1); if (($r == '_') || ($r == '-')) { $s++; } } echo $r;

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.0060.00319.16
7.1.70.0040.00416.91
7.1.60.0140.01119.40
7.1.50.0090.01217.05
7.1.00.0070.06322.45
7.0.200.0000.00916.89
7.0.140.0130.06722.00
7.0.60.0130.08019.95
7.0.50.0000.07017.89
7.0.40.0170.04020.22
7.0.30.0230.04320.33
7.0.20.0230.08020.16
7.0.10.0100.05320.09
7.0.00.0100.05320.09
5.6.280.0100.09321.09
5.6.210.0100.07020.61
5.6.200.0030.04318.23
5.6.190.0100.05020.48
5.6.180.4030.04020.56
5.6.170.0300.06320.50
5.6.160.0070.08720.38
5.6.150.0000.04718.21
5.6.140.0070.08018.21
5.6.130.0170.07018.21
5.6.120.0030.08721.13
5.6.110.0070.08721.00
5.6.100.0200.06021.11
5.6.90.0100.03721.09
5.6.80.0070.08020.35
5.6.70.0100.08320.47
5.5.350.0100.07720.40
5.5.340.0100.03317.95
5.5.330.0130.03720.43
5.5.320.0330.07020.34
5.5.310.0330.04720.14
5.5.300.0070.08018.00
5.5.290.0100.07718.01
5.5.280.0070.08720.62
5.5.270.0070.04320.87
5.5.260.0030.08720.95
5.5.250.0070.08020.61
5.5.240.0070.06020.26
5.4.450.0730.06719.41
5.4.440.0700.07719.14
5.4.430.0700.05719.46
5.4.420.0170.06019.41
5.4.410.0000.06319.49
5.4.400.0300.07018.78
5.4.390.0300.06718.73
5.4.380.0300.06018.68
5.4.370.0130.05718.72
5.4.360.0200.04718.71
5.4.350.0130.04111.97
5.4.340.0130.04211.97
5.4.320.0060.03612.46
5.4.310.0050.03812.45
5.4.300.0110.03112.46
5.4.290.0070.03912.45
5.4.280.0060.03512.35
5.4.270.0100.03212.35
5.4.260.0060.03712.35
5.4.250.0070.05318.71
5.4.240.0100.07718.83
5.4.230.0130.05018.82
5.4.220.0070.05718.84
5.4.210.0100.05718.97
5.4.200.0130.04718.84
5.4.190.0070.05318.64
5.4.180.0170.06018.81
5.4.170.0070.05318.88
5.4.160.0130.05018.81
5.4.150.0070.07018.83
5.4.140.0100.05316.25
5.4.130.0070.05716.43
5.4.120.0070.05016.18
5.4.110.0030.05316.42
5.4.100.0170.04016.44
5.4.90.0130.04016.39
5.4.80.0170.03716.38
5.4.70.0030.05316.24
5.4.60.0170.06016.42
5.4.50.0030.06016.44
5.4.40.0100.05016.39
5.4.30.0100.04716.20
5.4.20.0070.04716.35
5.4.10.0130.04716.30
5.4.00.0070.05015.70
5.3.290.0060.03912.80
5.3.280.0030.07014.74
5.3.270.0130.04714.65
5.3.260.0070.07714.30
5.3.250.0170.04014.61
5.3.240.0170.04714.30
5.3.230.0030.05314.51
5.3.220.0170.06314.41
5.3.210.0130.04714.66
5.3.200.0070.05014.34
5.3.190.0130.04714.58
5.3.180.0100.06314.57
5.3.170.0200.05014.45
5.3.160.0100.05014.26
5.3.150.0000.05714.71
5.3.140.0200.05314.57
5.3.130.0170.04314.54
5.3.120.0130.05014.46
5.3.110.0230.03714.56
5.3.100.0130.04313.92
5.3.90.0000.06013.71
5.3.80.0030.06313.96
5.3.70.0070.04714.17
5.3.60.0030.05314.00
5.3.50.0030.05313.88
5.3.40.0070.07013.96
5.3.30.0070.05013.62
5.3.20.0070.05313.72
5.3.10.0100.04313.49
5.3.00.0070.05013.63
5.2.170.0070.04011.05
5.2.160.0130.04011.15
5.2.150.0030.05011.16
5.2.140.0130.04711.25
5.2.130.0030.04311.09
5.2.120.0100.03710.86
5.2.110.0000.04311.11
5.2.100.0030.04011.19
5.2.90.0030.04011.00
5.2.80.0030.05010.93
5.2.70.0230.03711.00
5.2.60.0070.05010.96
5.2.50.0070.05011.02
5.2.40.0100.05311.10
5.2.30.0030.04310.91
5.2.20.0030.04010.90
5.2.10.0030.04010.94
5.2.00.0070.03710.62
5.1.60.0030.0409.96
5.1.50.0030.03710.05
5.1.40.0070.0309.88
5.1.30.0130.03710.33
5.1.20.0100.03010.27
5.1.10.0030.0379.91
5.1.00.0030.05310.13
5.0.50.0070.0378.63
5.0.40.0030.0278.34
5.0.30.0070.0478.25
5.0.20.0100.0308.28
5.0.10.0100.0208.16
5.0.00.0030.0578.25
4.4.90.0000.0337.34
4.4.80.0030.0277.34
4.4.70.0000.0277.34
4.4.60.0030.0207.34
4.4.50.0000.0237.34
4.4.40.0000.0377.34
4.4.30.0130.0107.34
4.4.20.0030.0237.34
4.4.10.0100.0137.33
4.4.00.0030.0437.32
4.3.110.0030.0277.32
4.3.100.0030.0207.32
4.3.90.0030.0207.32
4.3.80.0000.0377.32
4.3.70.0100.0137.32
4.3.60.0000.0307.32
4.3.50.0070.0207.32
4.3.40.0000.0407.32
4.3.30.0000.0237.32
4.3.20.0070.0237.32
4.3.10.0070.0237.32
4.3.00.0100.0306.78

preferences:
35.06 ms | 401 KiB | 5 Q