3v4l.org

run code in 300+ PHP versions simultaneously
<?php $repeatedFields = [ 1 => [ 'field' => value] ]; /* go through each page and create a PDF for each one */ foreach ($repeatedFields as $formPage => $fieldContent) { $repeatValues = []; foreach ($fieldContent as $fieldName => $fieldValue) { $repeatValues[$fieldName] = $fieldValue; } } die(var_dump($repeatedFields));

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)
8.3.70.0160.00318.55
8.3.60.0110.00416.38
8.3.50.0160.00721.92
8.3.40.0070.00718.60
8.3.30.0110.00418.71
8.3.20.0040.00420.09
8.3.10.0040.00423.48
8.3.00.0100.00019.38
8.2.190.0040.01118.16
8.2.180.0070.00716.75
8.2.170.0140.00022.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0090.00017.50
8.2.110.0140.00422.21
8.2.100.0040.00717.93
8.2.90.0030.00519.17
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0040.00417.80
8.2.50.0030.00518.07
8.2.40.0000.00921.11
8.2.30.0050.00220.53
8.2.20.0040.00417.74
8.2.10.0040.00418.04
8.2.00.0070.00017.98
8.1.280.0130.00725.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0100.00028.09
8.1.240.0080.00021.03
8.1.230.0080.00417.53
8.1.220.0000.00817.76
8.1.210.0000.00918.77
8.1.200.0000.00917.35
8.1.190.0040.00417.22
8.1.180.0000.00918.10
8.1.170.0040.00418.87
8.1.160.0000.00721.89
8.1.150.0030.00618.87
8.1.140.0000.00919.55
8.1.130.0000.00717.56
8.1.120.0000.00717.31
8.1.110.0000.00717.35
8.1.100.0070.00017.42
8.1.90.0000.00717.42
8.1.80.0060.00317.45
8.1.70.0070.00017.41
8.1.60.0000.00717.57
8.1.50.0040.00417.37
8.1.40.0060.00317.45
8.1.30.0040.00417.62
8.1.20.0040.00417.44
8.1.10.0030.00517.56
8.1.00.0040.00417.42
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0050.00218.43
8.0.270.0000.00717.32
8.0.260.0030.00317.16
8.0.250.0000.00716.92
8.0.240.0000.00717.00
8.0.230.0000.00816.90
8.0.220.0030.00316.89
8.0.210.0080.00016.89
8.0.200.0030.00316.95
8.0.190.0040.00417.04
8.0.180.0000.00717.03
8.0.170.0000.00816.93
8.0.160.0040.00416.97
8.0.150.0000.00716.81
8.0.140.0000.00716.92
8.0.130.0030.00313.34
8.0.120.0000.00716.92
8.0.110.0000.00716.87
8.0.100.0070.00016.89
8.0.90.0000.00817.02
8.0.80.0070.01116.93
8.0.70.0040.00416.83
8.0.60.0070.00016.96
8.0.50.0070.00016.93
8.0.30.0160.00316.99
8.0.20.0110.01017.40
8.0.10.0000.00816.85
8.0.00.0110.01216.73
7.4.330.0000.00515.08
7.4.320.0060.00016.49
7.4.300.0060.00316.61
7.4.290.0070.00016.43
7.4.280.0070.00316.51
7.4.270.0030.00316.54
7.4.260.0070.00016.52
7.4.250.0050.00216.48
7.4.240.0050.00216.51
7.4.230.0000.00716.70
7.4.220.0080.00816.52
7.4.210.0060.01116.52
7.4.200.0080.00016.63
7.4.160.0080.00816.77
7.4.150.0100.01017.40
7.4.140.0160.00717.86
7.4.130.0140.01016.46
7.4.120.0070.01316.49
7.4.110.0090.00916.38
7.4.100.0140.00816.59
7.4.90.0130.00316.34
7.4.80.0090.00919.39
7.4.70.0120.01216.60
7.4.60.0090.00616.51
7.4.50.0060.00316.39
7.4.40.0080.01316.51
7.4.30.0060.01016.44
7.4.00.0070.00714.86
7.3.330.0050.00013.24
7.3.320.0000.00613.10
7.3.310.0030.00316.46
7.3.300.0030.00316.20
7.3.290.0030.00316.41
7.3.280.0060.01216.38
7.3.270.0060.01217.40
7.3.260.0070.01016.55
7.3.250.0100.00916.45
7.3.240.0120.00916.50
7.3.230.0070.01016.54
7.3.210.0070.01416.36
7.3.200.0130.00316.34
7.3.190.0170.00416.46
7.3.180.0060.01016.38
7.3.170.0060.01216.58
7.3.160.0120.00616.72
7.2.330.0100.01016.39
7.2.320.0030.01516.68
7.2.310.0100.00716.43
7.2.300.0160.00316.67
7.2.290.0090.01216.57
7.2.60.0070.00716.77
7.2.00.0030.00919.36
7.1.200.0040.00815.80
7.1.100.0110.00318.05
7.1.70.0100.00317.21
7.1.60.0120.01219.43
7.1.50.0030.02016.92
7.1.00.0030.07322.37
7.0.200.0580.00614.75
7.0.60.0000.08020.07
7.0.50.0130.08017.92
7.0.40.0070.04319.96
7.0.30.0170.07720.21
7.0.20.0230.08020.11
7.0.10.0030.06020.12
7.0.00.0070.09020.09
5.6.280.0030.07321.07
5.6.210.0030.08020.62
5.6.200.0100.05318.18
5.6.190.0100.04720.27
5.6.180.4000.04020.27
5.6.170.0230.06720.52
5.6.160.0030.08720.48
5.6.150.0030.05018.16
5.6.140.0070.08718.16
5.6.130.0130.06718.18
5.6.120.0170.07020.89
5.6.110.0070.07720.97
5.6.100.0100.07320.88
5.6.90.0100.08021.10
5.6.80.0200.06320.43
5.5.350.0330.07020.38
5.5.340.0100.03717.99
5.5.330.0070.07720.37
5.5.320.0270.04020.27
5.5.310.0170.04020.20
5.5.300.0000.04318.02
5.5.290.0130.07717.93
5.5.280.0100.08020.88
5.5.270.0000.07720.75
5.5.260.0030.09020.88
5.5.250.0100.04020.54
5.5.240.0030.07720.25
5.4.450.0200.07319.16
5.4.440.0400.07319.27
5.4.430.0100.06319.44
5.4.420.0200.05319.59
5.4.410.0300.05719.50
5.4.400.0230.05319.15
5.4.390.0230.05719.31
5.4.380.0300.04319.16
5.4.370.0370.05019.15
5.4.360.0270.05718.77
5.4.350.0100.07719.19
5.4.340.0200.04718.78
5.4.320.0230.05319.10
5.4.310.0200.05719.15
5.4.300.0200.05318.92
5.4.290.0200.07318.80
5.4.280.0630.04019.14
5.4.270.0600.05019.14
5.4.260.0770.05319.11
5.4.250.0570.06019.21
5.4.240.0630.06018.77
5.4.230.0730.04719.13
5.4.220.0800.06318.98
5.4.210.0670.05019.27
5.4.200.0100.05019.18
5.4.190.0170.05719.23
5.4.180.0200.06318.79
5.4.170.0070.07018.93
5.4.160.0170.05319.09
5.4.150.0370.06019.25
5.4.140.0100.05716.45
5.4.130.0170.05716.29
5.4.120.0170.05016.45
5.4.110.0030.06016.21
5.4.100.0630.06016.46
5.4.90.0700.05016.37
5.4.80.0500.05016.31
5.4.70.0130.05716.40
5.4.60.0230.03716.46
5.4.50.0200.04316.36
5.4.40.0170.05016.34
5.4.30.0170.04716.56
5.4.20.0170.04316.46
5.4.10.0200.05316.33
5.4.00.0300.07015.92

preferences:
133 ms | 401 KiB | 5 Q