3v4l.org

run code in 300+ PHP versions simultaneously
<?php $people = Array( Array('name' => 'Kalle', 'salt' => 856412), Array('name' => 'Pierre', 'salt' => 215863) ); for($i = 0, $size = sizeof($people); $i < $size; ++$i) { $people[$i]['salt'] = rand(000000, 999999); }

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.1.70.0120.00317.01
7.1.60.0060.01819.40
7.1.50.0290.01134.85
7.1.00.0030.07322.28
7.0.200.0160.01016.76
7.0.140.0030.07722.19
7.0.60.0030.08019.81
7.0.50.0070.04017.80
7.0.40.0100.09020.27
7.0.30.0170.04020.34
7.0.20.0270.07020.16
7.0.10.0070.05020.13
7.0.00.0030.08720.21
5.6.280.0070.07020.91
5.6.210.0100.03720.66
5.6.200.0070.08318.19
5.6.190.0030.09020.57
5.6.180.0370.03320.64
5.6.170.0200.04020.52
5.6.160.0000.05720.48
5.6.150.0070.08018.11
5.6.140.0100.06318.11
5.6.130.0070.05018.18
5.6.120.0000.04721.12
5.6.110.0130.07720.97
5.6.100.0030.06320.97
5.6.90.0030.04320.96
5.6.80.0030.04020.40
5.5.350.0000.07720.33
5.5.340.0070.04018.00
5.5.330.0070.04320.23
5.5.320.0070.07320.26
5.5.310.0370.05020.32
5.5.300.0100.07017.98
5.5.290.0030.06317.91
5.5.280.0130.07720.66
5.5.270.0030.04020.86
5.5.260.0070.08320.75
5.5.250.0070.06320.66
5.5.240.0200.07320.11
5.4.450.0270.04719.57
5.4.440.0330.05319.45
5.4.430.0300.06719.45
5.4.420.0100.05319.41
5.4.410.0170.04319.09
5.4.400.0200.03319.13
5.4.390.0230.03319.09
5.4.380.0200.03318.93
5.4.370.0200.03318.91
5.4.360.0230.04719.08
5.4.350.0230.03319.09
5.4.340.0230.03318.81
5.4.320.0200.03318.82
5.4.310.0270.02719.14
5.4.300.0170.04019.09
5.4.290.0170.04719.21
5.4.280.0200.03718.78
5.4.270.0230.03319.11
5.4.260.0300.03318.78
5.4.250.0170.04019.12
5.4.240.0230.03318.91
5.4.230.0400.05718.91
5.4.220.0230.07019.07
5.4.210.0470.05318.92
5.4.200.0230.06019.08
5.4.190.0330.07019.12
5.4.180.0330.05719.07
5.4.170.0200.04019.14
5.4.160.0270.05319.06
5.4.150.0270.07019.21
5.4.140.0230.04316.33
5.4.130.0200.03716.25
5.4.120.0330.06016.25
5.4.110.0370.06016.45
5.4.100.0270.05316.45
5.4.90.0300.06016.43
5.4.80.0270.04016.39
5.4.70.0230.05316.18
5.4.60.0200.07316.38
5.4.50.0300.03316.36
5.4.40.0330.04016.20
5.4.30.0270.07016.20
5.4.20.0270.03716.18
5.4.10.0230.06316.16
5.4.00.0200.07315.76
5.3.290.0130.04014.61
5.3.280.0330.06714.54
5.3.270.0300.06714.43
5.3.260.0270.07314.46
5.3.250.0370.03714.44
5.3.240.0270.03714.63
5.3.230.0270.06314.64
5.3.220.0300.05314.40
5.3.210.0270.05714.40
5.3.200.0270.07014.54
5.3.190.0330.06314.49
5.3.180.0270.04714.40
5.3.170.0300.05014.59
5.3.160.0330.05014.42
5.3.150.0270.05314.46
5.3.140.0300.04314.50
5.3.130.0300.04014.57
5.3.120.0270.07014.40
5.3.110.0330.07014.45
5.3.100.0270.03314.03
5.3.90.0330.06313.96
5.3.80.0300.06713.96
5.3.70.0270.04314.04
5.3.60.0300.06714.02
5.3.50.0430.05313.78
5.3.40.0270.06713.97
5.3.30.0270.04713.75
5.3.20.0300.04313.62
5.3.10.0270.06313.50
5.3.00.0270.05313.48
5.2.170.0230.05712.18
5.2.160.0200.05012.18
5.2.150.0230.06012.18
5.2.140.0230.05712.18
5.2.130.0330.04712.18
5.2.120.0200.04312.18
5.2.110.0270.03012.18
5.2.100.0300.05012.18
5.2.90.0200.05712.18
5.2.80.0330.05312.18
5.2.70.0230.06012.18
5.2.60.0300.05012.18
5.2.50.0170.03012.18
5.2.40.0200.03012.18
5.2.30.0200.05712.18
5.2.20.0230.05712.18
5.2.10.0200.06312.18
5.2.00.0130.03712.18
5.1.60.0170.05712.18
5.1.50.0270.03312.18
5.1.40.0230.04012.18
5.1.30.0170.02712.18
5.1.20.0230.04312.18
5.1.10.0230.02712.18
5.1.00.0270.02012.18
5.0.50.0070.03312.18
5.0.40.0170.04012.18
5.0.30.0130.06312.18
5.0.20.0170.03012.18
5.0.10.0100.04312.18
5.0.00.0100.04312.18
4.4.90.0070.04012.18
4.4.80.0170.02712.18
4.4.70.0100.03712.18
4.4.60.0170.02712.18
4.4.50.0100.03312.18
4.4.40.0100.03712.18
4.4.30.0130.01712.18
4.4.20.0100.03312.18
4.4.10.0130.01712.18
4.4.00.0100.04712.18
4.3.110.0100.03712.18
4.3.100.0170.02712.18
4.3.90.0170.01712.18
4.3.80.0130.04312.18
4.3.70.0100.01312.18
4.3.60.0100.01312.18
4.3.50.0130.03012.18
4.3.40.0130.03712.18
4.3.30.0070.02012.18
4.3.20.0070.04012.18
4.3.10.0070.01712.18
4.3.00.0130.02712.18

preferences:
37.17 ms | 400 KiB | 5 Q