3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr=array(); $c=''; for ($i=0;$i<=99999;$i++) { $arr[]=uniqid('',true); } $max=count($arr); for ($i=0;$i<$max;$i++) { $c.=$arr[$i]; } echo strlen($c); ?>

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.0400.10947.15
7.3.120.0460.10647.47
7.3.110.0230.12347.15
7.3.100.0200.12647.41
7.3.90.0300.11647.20
7.3.80.0330.10947.39
7.3.70.0170.12147.29
7.3.60.0130.13047.38
7.3.50.0370.11047.06
7.3.40.0200.12047.16
7.3.30.0160.11647.14
7.3.20.0230.11648.59
7.3.10.0940.12048.32
7.3.00.0280.11048.69
7.2.250.0300.11947.34
7.2.240.0130.13547.57
7.2.230.0230.11047.38
7.2.220.0300.10847.64
7.2.210.0200.12347.52
7.2.200.0100.12747.45
7.2.190.0300.11047.38
7.2.180.0300.11747.14
7.2.170.0300.11147.31
7.2.130.0730.11648.87
7.2.120.0230.12048.57
7.2.110.0440.10948.78
7.2.100.0370.11548.84
7.2.90.0230.12248.88
7.2.80.0340.11148.64
7.2.70.0230.11148.70
7.2.60.0140.12448.89
7.2.50.0310.11048.57
7.2.40.0330.11848.86
7.2.30.0310.11848.49
7.2.20.0260.11848.52
7.2.10.0200.11648.78
7.2.00.0210.11948.69
7.1.330.0130.08547.56
7.1.320.0100.11747.93
7.1.310.0130.10247.65
7.1.300.0070.11147.81
7.1.290.0200.10347.59
7.1.280.0030.11247.61
7.1.270.0100.08147.77
7.1.260.0230.09147.44
7.1.250.0610.09047.73
7.1.70.0000.07449.01
7.1.60.0030.11149.29
7.1.50.0100.08948.99
7.1.00.0130.12754.22
7.0.200.0760.05948.44
7.0.140.0030.14054.05
7.0.60.0830.13752.61
7.0.50.0270.14350.26
7.0.40.0230.13323.57
7.0.30.0500.13023.72
7.0.20.0530.12323.57
7.0.10.0200.07323.55
7.0.00.0230.11723.81
5.6.280.0170.16046.71
5.6.210.0130.14346.25
5.6.200.0100.13743.80
5.6.190.0070.12345.97
5.6.180.0400.11045.93
5.6.170.0300.11745.97
5.6.160.0130.12045.81
5.6.150.0230.16043.78
5.6.140.0100.10743.71
5.6.130.0130.11343.80
5.6.120.0170.15746.77
5.6.110.0200.16746.69
5.6.100.0200.17346.66
5.6.90.0230.14346.75
5.6.80.0130.15746.05
5.5.350.0400.14746.08
5.5.340.0030.18043.51
5.5.330.0100.10745.80
5.5.320.0570.09345.71
5.5.310.0200.11045.87
5.5.300.0100.15343.50
5.5.290.0300.15043.63
5.5.280.0170.11346.44
5.5.270.0200.17746.51
5.5.260.0070.16746.39
5.5.250.0270.16746.23
5.5.240.0330.14045.99
5.4.450.0330.12345.05
5.4.440.0230.12045.01
5.4.430.0200.11044.78
5.4.420.0330.13345.04
5.4.410.0370.10744.76
5.4.400.0130.11744.59
5.4.390.0230.10344.73
5.4.380.0400.08744.66
5.4.370.0200.16744.75
5.4.360.0430.15044.72
5.4.350.0330.13344.57
5.4.340.0400.15044.61
5.4.320.0400.14344.60
5.4.310.0270.13744.63
5.4.300.0270.11344.63
5.4.290.0400.15744.64
5.4.280.0330.10344.59
5.4.270.0470.15044.57
5.4.260.0400.13344.63
5.4.250.0330.11344.62
5.4.240.0370.14344.67
5.4.230.0270.12044.69
5.4.220.0470.12744.71
5.4.210.0400.12744.53
5.4.200.0330.17044.59
5.4.190.0400.15044.57
5.4.180.0430.14044.47
5.4.170.0330.12044.45
5.4.160.0430.14344.51
5.4.150.0370.10344.64
5.4.140.0370.10341.76
5.4.130.0300.11041.88
5.4.120.0400.12041.84
5.4.110.0500.13342.06
5.4.100.0300.15742.00
5.4.90.0270.11041.87
5.4.80.0370.10342.11
5.4.70.0300.10041.74
5.4.60.0400.10341.97
5.4.50.0230.10742.00
5.4.40.0230.12341.84
5.4.30.0270.12741.88
5.4.20.0230.10741.88
5.4.10.0200.14042.04
5.4.00.0470.13341.33
5.3.290.0200.15739.84
5.3.280.0400.15739.76
5.3.270.0400.14739.80
5.3.260.0400.15039.79
5.3.250.0330.16739.79
5.3.240.0270.17039.82
5.3.230.0400.15039.79
5.3.220.0270.11339.75
5.3.210.0230.13039.79
5.3.200.0300.11739.76
5.3.190.0370.11339.76
5.3.180.0400.12739.76
5.3.170.0300.11339.80
5.3.160.0270.13739.75
5.3.150.0270.16039.72
5.3.140.0370.10039.61
5.3.130.0300.13739.73
5.3.120.0330.15739.73
5.3.110.0330.14339.64
5.3.100.0370.12039.18
5.3.90.0370.14039.21
5.3.80.0300.15739.23
5.3.70.0570.11739.16
5.3.60.0400.13039.67
5.3.50.0400.12339.22
5.3.40.0370.14739.14
5.3.30.0230.14338.96
5.3.20.0400.14338.89
5.3.10.0330.12738.85
5.3.00.0400.15338.79
5.2.170.0270.10735.52
5.2.160.0270.11035.66
5.2.150.0230.15735.59
5.2.140.0170.11335.61
5.2.130.0270.15035.55
5.2.120.0200.12036.10
5.2.110.0230.12035.54
5.2.100.0270.10735.46
5.2.90.0100.12735.59
5.2.80.0230.11035.45
5.2.70.0270.10335.59
5.2.60.0500.09735.54
5.2.50.0170.12335.54
5.2.40.0330.10735.45
5.2.30.0230.13335.57
5.2.20.0370.17035.43
5.2.10.0300.14335.33
5.2.00.0230.12735.21
5.1.60.0270.10340.31
5.1.50.0330.15040.33
5.1.40.0270.14740.34
5.1.30.0230.09740.77
5.1.20.0270.14040.75
5.1.10.0270.11740.58
5.1.00.0430.09740.50
5.0.50.0170.17739.05
5.0.40.0230.16738.93
5.0.30.0130.14738.66
5.0.20.0130.16738.64
5.0.10.0330.13038.59
5.0.00.0200.17338.62
4.4.90.0100.13331.85
4.4.80.0070.15331.82
4.4.70.0200.15331.90
4.4.60.0130.13331.80
4.4.50.0100.19031.88
4.4.40.0200.19731.82
4.4.30.0200.18331.82
4.4.20.0130.19031.84
4.4.10.0200.12031.84
4.4.00.0130.19731.81
4.3.110.0130.13031.85
4.3.100.0070.15731.68
4.3.90.0100.13031.68
4.3.80.0200.17031.71
4.3.70.0300.17731.77
4.3.60.0230.19331.70
4.3.50.0170.16331.68
4.3.40.0070.15331.64
4.3.30.0100.20030.43
4.3.20.0270.16730.49
4.3.10.0100.18330.52
4.3.00.0200.11730.41

preferences:
36.12 ms | 401 KiB | 5 Q