3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr_u = array(); for($i=0; $i<52; $i++)array_push($arr_u,chr(rand(3420,66666))); print_r($arr_u);

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.0030.01019.20
7.1.70.0040.00417.24
7.1.60.0100.01319.70
7.1.50.0120.01216.71
7.1.00.0030.07722.43
7.0.200.0030.00516.46
7.0.140.0100.06721.96
7.0.60.0070.08720.00
7.0.50.0130.03017.86
7.0.40.0170.07720.24
7.0.30.0600.06720.33
7.0.20.0330.07320.10
7.0.10.0270.07720.23
7.0.00.0130.08020.30
5.6.280.0070.07021.11
5.6.210.0100.06320.44
5.6.200.0000.05018.16
5.6.190.0030.08020.64
5.6.180.0230.04720.50
5.6.170.0270.06720.45
5.6.160.0130.04720.61
5.6.150.0070.08318.15
5.6.140.0030.04018.18
5.6.130.0100.08318.17
5.6.120.0300.03720.99
5.6.110.0100.03721.02
5.6.100.0030.04020.93
5.6.90.0100.08720.99
5.6.80.0130.07320.36
5.6.70.0070.03720.38
5.5.350.0270.07020.43
5.5.340.0070.08018.01
5.5.330.0030.04320.43
5.5.320.0370.07320.27
5.5.310.0330.07320.37
5.5.300.0030.08317.99
5.5.290.0030.07717.95
5.5.280.0070.04320.87
5.5.270.0030.08020.75
5.5.260.0070.07020.95
5.5.250.0030.04020.61
5.5.240.0130.07020.32
5.4.450.0270.08019.46
5.4.440.3730.04319.30
5.4.430.0230.04319.31
5.4.420.0030.06019.36
5.4.410.0200.05019.31
5.4.400.0300.06319.07
5.4.390.0100.05019.16
5.4.380.0300.06018.84
5.4.370.0200.04318.71
5.4.360.0070.04718.55
5.4.350.0110.04712.01
5.4.340.0140.04512.01
5.4.320.0040.04312.50
5.4.310.0090.04312.49
5.4.300.0090.04712.49
5.4.290.0110.05012.49
5.4.280.0100.04812.38
5.4.270.0100.04812.39
5.4.260.0090.04512.38
5.4.250.0060.04312.37
5.4.240.0070.04212.38
5.4.230.0080.04312.37
5.4.220.0090.03912.37
5.4.210.0070.03712.37
5.4.200.0060.04312.37
5.4.190.0090.03712.36
5.4.180.0090.03712.36
5.4.170.0070.03912.38
5.4.160.0080.03712.37
5.4.150.0090.04112.37
5.4.140.0080.03812.05
5.4.130.0100.03612.04
5.4.120.0100.03811.99
5.4.110.0090.03711.99
5.4.100.0080.03811.99
5.4.90.0070.04211.99
5.4.80.0080.04211.99
5.4.70.0100.03911.99
5.4.60.0090.03611.99
5.4.50.0090.04011.99
5.4.40.0090.04011.98
5.4.30.0070.03911.97
5.4.20.0070.03811.97
5.4.10.0040.04011.97
5.4.00.0080.04011.47
5.3.290.0060.05312.80
5.3.280.0090.04112.71
5.3.270.0100.04612.72
5.3.260.0100.04612.72
5.3.250.0120.04312.72
5.3.240.0090.04412.72
5.3.230.0080.04612.71
5.3.220.0080.04612.68
5.3.210.0110.04612.68
5.3.200.0090.04512.68
5.3.190.0100.04112.68
5.3.180.0070.04612.67
5.3.170.0080.04112.67
5.3.160.0090.04412.67
5.3.150.0110.04412.67
5.3.140.0100.03912.66
5.3.130.0090.04312.66
5.3.120.0080.04312.66
5.3.110.0050.04512.66
5.3.100.0090.03912.12
5.3.90.0080.03912.09
5.3.80.0070.03712.09
5.3.70.0080.03812.08
5.3.60.0060.04112.07
5.3.50.0110.03612.01
5.3.40.0080.04412.01
5.3.30.0090.03611.97

preferences:
34.44 ms | 401 KiB | 5 Q