3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); for ($i=0; $i<100000; $i++) $a[] = $i; $a = implode(',', $a); // or $a = json_encode($a); echo number_format(memory_get_usage(true)/1048576, 2)."\n";

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.3.10.0110.01122.53
7.3.00.0070.01822.68
7.2.130.0110.01122.48
7.2.120.0040.01922.32
7.2.110.0130.01322.60
7.2.100.0000.02022.18
7.2.90.0120.01522.43
7.2.80.0070.01922.63
7.2.70.0080.01622.15
7.2.60.0370.00922.35
7.2.50.0110.01722.71
7.2.40.0190.01422.56
7.2.30.0130.02722.60
7.2.20.0130.01022.57
7.2.10.0280.00922.34
7.2.00.0180.00924.13
7.1.250.0070.02021.43
7.1.70.0000.01323.29
7.1.60.0100.02423.34
7.1.50.0130.02022.97
7.1.00.0030.08328.24
7.0.200.0000.01222.83
7.0.140.0100.07327.95
7.0.60.0430.09325.95
7.0.50.0130.09723.66
7.0.40.0100.09023.73
7.0.30.0330.08723.60
7.0.20.0330.06723.78
7.0.10.0370.05023.77
7.0.00.0030.05723.58
5.6.280.0030.10735.66
5.6.210.0070.11035.50
5.6.200.0130.11032.88
5.6.190.0070.07335.08
5.6.180.0000.08035.04
5.6.170.0230.06035.02
5.6.160.0100.11335.00
5.6.150.0130.06332.80
5.6.140.0100.09732.94
5.6.130.0030.08332.83
5.6.120.0170.10035.73
5.6.110.0070.09735.80
5.6.100.0070.06035.77
5.6.90.0170.10035.73
5.6.80.0130.10335.14
5.5.350.0070.06735.15
5.5.340.0170.10032.59
5.5.330.0230.09034.83
5.5.320.0330.10034.95
5.5.310.0230.07034.87
5.5.300.0100.06032.74
5.5.290.0200.07332.63
5.5.280.0130.07335.52
5.5.270.0100.09035.64
5.5.260.0130.07335.42
5.5.250.0130.10035.33
5.5.240.0230.05734.87
5.4.450.0470.08734.05
5.4.440.0400.08333.93
5.4.430.0330.10033.89
5.4.420.0330.06334.25
5.4.410.0200.06033.66
5.4.400.0300.09333.76
5.4.390.0370.04333.71
5.4.380.0300.08733.61
5.4.370.0370.08033.93
5.4.360.0230.08033.69
5.4.350.0270.10333.71
5.4.340.0270.10333.81
5.4.320.0400.06333.76
5.4.310.0370.09333.71
5.4.300.0300.09333.61
5.4.290.0300.09733.91
5.4.280.0270.05733.75
5.4.270.0270.05733.72
5.4.260.0330.05333.48
5.4.250.0300.06733.56
5.4.240.0330.10033.71
5.4.230.0330.09733.70
5.4.220.0170.05733.74
5.4.210.0200.06033.57
5.4.200.0170.05733.91
5.4.190.0130.06033.59
5.4.180.0230.05333.60
5.4.170.0130.05733.73
5.4.160.0200.05033.66
5.4.150.0200.06033.68
5.4.140.0270.04331.02
5.4.130.0230.04731.01
5.4.120.0230.04330.89
5.4.110.0130.06030.89
5.4.100.0200.09031.06
5.4.90.0230.04331.14
5.4.80.0200.04730.79
5.4.70.0200.04731.12
5.4.60.0070.07030.91
5.4.50.0270.05030.92
5.4.40.0230.04730.77
5.4.30.0070.06031.13
5.4.20.0100.05731.08
5.4.10.0270.06031.13
5.4.00.0230.08330.62
5.3.290.0300.06329.33
5.3.280.0200.06029.18
5.3.270.0230.06029.26
5.3.260.0170.06329.27
5.3.250.0200.05029.32
5.3.240.0230.04729.43
5.3.230.0230.04729.18
5.3.220.0170.05729.18
5.3.210.0200.05329.09
5.3.200.0200.05329.24
5.3.190.0170.06029.27
5.3.180.0130.06029.22
5.3.170.0130.06029.37
5.3.160.0230.06029.16
5.3.150.0200.05329.25
5.3.140.0130.06729.24
5.3.130.0130.05729.12
5.3.120.0270.06029.27
5.3.110.0230.06329.26
5.3.100.0330.05328.73
5.3.90.0270.06728.71
5.3.80.0300.05728.54
5.3.70.0230.08728.55
5.3.60.0230.09028.54
5.3.50.0370.09028.49
5.3.40.0370.09028.46
5.3.30.0300.09028.45
5.3.20.0230.06728.33
5.3.10.0300.07728.40
5.3.00.0330.09028.23
5.2.170.0430.06325.09
5.2.160.0230.09025.10
5.2.150.0300.05024.94
5.2.140.0230.08725.00
5.2.130.0270.06724.96
5.2.120.0230.06024.87
5.2.110.0300.06324.95
5.2.100.0130.07724.99
5.2.90.0200.08324.85
5.2.80.0330.07024.85
5.2.70.0200.09025.02
5.2.60.0170.09724.86
5.2.50.0330.04324.99
5.2.40.0230.09724.76
5.2.30.0170.06024.83
5.2.20.0300.08024.88
5.2.10.0200.09324.79
5.2.00.0100.07024.62
5.1.60.0400.10351.95
5.1.50.0270.12051.89
5.1.40.0370.09752.00
5.1.30.0270.09352.29
5.1.20.0300.12052.46
5.1.10.0330.10751.96
5.1.00.0470.08352.16
5.0.50.0330.12050.75
5.0.40.0430.10350.38
5.0.30.0300.07750.32
5.0.20.0430.12350.25
5.0.10.0200.14750.07
5.0.00.0270.13750.36
4.4.90.0200.12747.92
4.4.80.0130.09047.92
4.4.70.0170.10047.91
4.4.60.0170.12747.92
4.4.50.0230.07047.94
4.4.40.0170.11347.93
4.4.30.0230.10047.91
4.4.20.0130.10347.99
4.4.10.0200.07747.95
4.4.00.0370.10047.94
4.3.110.0270.12347.86
4.3.100.0170.08047.83
4.3.90.0170.13047.90
4.3.80.0300.10047.88
4.3.70.0300.11747.93
4.3.60.0130.08347.77
4.3.50.0200.07347.80
4.3.40.0330.12347.82
4.3.30.0200.11746.58
4.3.20.0170.11046.64
4.3.10.0070.09346.54
4.3.00.0130.11046.59

preferences:
36.43 ms | 400 KiB | 5 Q