3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Tracking { function __construct($client_id) {} function createIdent($charcount) { $ident = null; $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; $x = 0; while ($x < $charcount) { $ident .= substr($chars, mt_rand(0, strlen($chars) - 1), 1); $x++; } return $ident; } } $tracking = new Tracking(1477); echo $tracking->createIdent(7);

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.0090.00519.52
7.1.70.0050.01016.91
7.1.60.0140.01019.29
7.1.50.0030.02317.01
7.1.00.0030.04022.35
7.0.200.0080.00016.82
7.0.140.0030.07321.97
7.0.60.0100.07719.93
7.0.50.0000.04717.98
7.0.40.0070.09020.31
7.0.30.0270.07320.21
7.0.20.0300.07720.23
7.0.10.0200.05020.23
7.0.00.0000.06020.11
5.6.280.0070.06721.04
5.6.210.0100.07020.72
5.6.200.0030.04318.19
5.6.190.0070.06020.57
5.6.180.3170.04320.62
5.6.170.0170.05020.55
5.6.160.0070.04320.57
5.6.150.0000.05718.18
5.6.140.0170.05318.17
5.6.130.0100.06718.15
5.6.120.0030.04321.02
5.6.110.0230.05320.89
5.6.100.0130.07720.98
5.6.90.0070.04020.98
5.6.80.0030.07020.51
5.6.70.0130.07320.37
5.5.350.0130.08320.41
5.5.340.0070.07717.94
5.5.330.0030.04320.40
5.5.320.0330.04720.42
5.5.310.0330.08020.33
5.5.300.0100.07718.07
5.5.290.0070.08717.95
5.5.280.0070.03720.82
5.5.270.0000.04720.87
5.5.260.0070.08320.87
5.5.250.0070.06720.55
5.5.240.0200.06020.15
5.4.450.0730.05719.61
5.4.440.0700.05719.16
5.4.430.0900.05719.19
5.4.420.0630.06019.43
5.4.410.0730.06019.57
5.4.400.1300.07318.81
5.4.390.1370.05018.79
5.4.380.0300.07018.70
5.4.370.0030.06018.62
5.4.360.0130.05318.61
5.4.350.0090.04212.02
5.4.340.0080.03812.02
5.4.320.0070.03712.50
5.4.310.0040.04112.50
5.4.300.0080.03612.50
5.4.290.0050.03912.50
5.4.280.0090.03812.40
5.4.270.0070.03512.39
5.4.260.0100.03812.39
5.4.250.0070.05319.06
5.4.240.0200.04718.93
5.4.230.0000.06018.76
5.4.220.0030.06018.93
5.4.210.0100.07718.95
5.4.200.0170.07018.90
5.4.190.0100.05018.70
5.4.180.0100.05318.93
5.4.170.0100.05319.06
5.4.160.0070.05318.75
5.4.150.0130.07018.93
5.4.140.0070.06016.31
5.4.130.0130.05016.42
5.4.120.0130.05716.34
5.4.110.0030.05316.38
5.4.100.0070.05016.46
5.4.90.0070.05016.52
5.4.80.0130.04316.45
5.4.70.0100.04716.48
5.4.60.0070.05016.36
5.4.50.0100.04716.53
5.4.40.0070.05016.34
5.4.30.0130.04016.51
5.4.20.0100.05016.42
5.4.10.0170.04316.30
5.4.00.0070.05016.00
5.3.290.0050.04012.80
5.3.280.0130.04314.43
5.3.270.0100.05014.59
5.3.260.0200.06014.69
5.3.250.0130.06714.69
5.3.240.0030.05714.61
5.3.230.0130.04714.59
5.3.220.0070.06714.79
5.3.210.0030.05314.73
5.3.200.0170.04014.59
5.3.190.0230.03714.58
5.3.180.0230.03314.47
5.3.170.0030.05014.65
5.3.160.0130.05014.65
5.3.150.0170.06714.73
5.3.140.0170.06714.70
5.3.130.0030.05714.52
5.3.120.0200.04014.38
5.3.110.0070.05714.61
5.3.100.0100.06714.03
5.3.90.0070.05014.02
5.3.80.0100.04713.99
5.3.70.0030.05314.11
5.3.60.0070.05013.91
5.3.50.0100.04313.94
5.3.40.0070.05014.03
5.3.30.0100.04713.99
5.3.20.0030.05013.79
5.3.10.0030.05013.56
5.3.00.0100.05313.46
5.2.170.0030.04311.23
5.2.160.0030.04011.14
5.2.150.0070.04011.13
5.2.140.0000.04711.23
5.2.130.0100.03711.19
5.2.120.0130.03311.09
5.2.110.0130.03311.27
5.2.100.0100.05711.32
5.2.90.0130.03311.11
5.2.80.0130.03711.13
5.2.70.0030.05011.18
5.2.60.0100.03710.88
5.2.50.0030.04711.12
5.2.40.0070.05311.01
5.2.30.0100.03711.06
5.2.20.0070.05711.04
5.2.10.0030.04310.95
5.2.00.0030.04010.56
5.1.60.0030.03710.01
5.1.50.0030.0339.96
5.1.40.0070.0379.99
5.1.30.0070.03310.24
5.1.20.0070.03310.26
5.1.10.0000.03710.08
5.1.00.0030.03710.06
5.0.50.0000.0338.55
5.0.40.0100.0208.45
5.0.30.0070.0408.18
5.0.20.0030.0308.17
5.0.10.0070.0238.09
5.0.00.0000.0438.00
4.4.90.0000.0277.24
4.4.80.0030.0207.02
4.4.70.0030.0206.36
4.4.60.0030.0206.36
4.4.50.0030.0206.36
4.4.40.0000.0376.30
4.4.30.0030.0206.26
4.4.20.0000.0236.26
4.4.10.0000.0236.26
4.4.00.0000.0336.26
4.3.110.0000.0276.26
4.3.100.0000.0236.26
4.3.90.0030.0176.26
4.3.80.0000.0336.26
4.3.70.0070.0176.26
4.3.60.0030.0306.26
4.3.50.0000.0236.26
4.3.40.0030.0336.26
4.3.30.0000.0236.26
4.3.20.0030.0206.26
4.3.10.0030.0206.26
4.3.00.0170.0237.20

preferences:
30.22 ms | 401 KiB | 5 Q