3v4l.org

run code in 300+ PHP versions simultaneously
<?php $results = [ 0 => ['txn' => 1, 'doctype' => 0, 'docid' => 1534098], 1 => ['txn' => 1, 'doctype' => 4, 'docid' => 1545], 2 => ['txn' => 1, 'doctype' => 4, 'docid' => 1098554], 3 => ['txn' => 1, 'doctype' => 5, 'docid' => 1098574], 4 => ['txn' => 1, 'doctype' => 7, 'docid' => 164525], 5 => ['txn' => 1, 'doctype' => 9, 'docid' => 153246], 6 => ['txn' => 1, 'doctype' => 9, 'docid' => 1554], 7 => ['txn' => 1, 'doctype' => 9, 'docid' => 15347], 8 => ['txn' => 1, 'doctype' => 1, 'docid' => 153354], 9 => ['txn' => 1, 'doctype' => 1, 'docid' => 190755], 10 => ['txn' => 2, 'doctype' => 0, 'docid' => 1554], 11 => ['txn' => 2, 'doctype' => 4, 'docid' => 159072], 12 => ['txn' => 2, 'doctype' => 7, 'docid' => 1436527], 13 => ['txn' => 2, 'doctype' => 9, 'docid' => 15647], 14 => ['txn' => 2, 'doctype' => 1, 'docid' => 15745], 15 => ['txn' => 3, 'doctype' => 0, 'docid' => 1576274], 16 => ['txn' => 3, 'doctype' => 2, 'docid' => 15945], 17 => ['txn' => 3, 'doctype' => 4, 'docid' => 15436], 18 => ['txn' => 3, 'doctype' => 5, 'docid' => 108543], 19 => ['txn' => 3, 'doctype' => 5, 'docid' => 91592], 20 => ['txn' => 3, 'doctype' => 1, 'docid' => 15046], 21 => ['txn' => 3, 'doctype' => 1, 'docid' => 109567], 22 => ['txn' => 3, 'doctype' => 1, 'docid' => 1906735] ]; foreach ($results as $row){ $output .= 'Trans: '.$row['txn'].', DocType: '.$row['doctype'].', Doc ID: '.$row['docid']."\n"; } echo $output;

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.60.0090.01318.80
8.3.50.0040.01222.00
8.3.40.0040.01118.88
8.3.30.0110.00319.21
8.3.20.0040.00420.25
8.3.10.0080.00023.66
8.3.00.0030.00722.39
8.2.180.0160.00317.00
8.2.170.0070.01022.96
8.2.160.0140.00022.03
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00419.40
8.2.110.0050.00522.18
8.2.100.0080.00317.94
8.2.90.0000.00817.75
8.2.80.0090.00318.04
8.2.70.0000.00917.93
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0070.00020.47
8.2.30.0050.00318.21
8.2.20.0000.00817.82
8.2.10.0040.00417.79
8.2.00.0080.00017.80
8.1.280.0100.01025.92
8.1.270.0080.00022.20
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.59
8.1.230.0060.00619.10
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0110.00417.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0040.00418.48
8.1.160.0000.00721.94
8.1.150.0080.00018.59
8.1.140.0000.00717.55
8.1.130.0000.00717.85
8.1.120.0000.00717.49
8.1.110.0000.00717.49
8.1.100.0000.00717.54
8.1.90.0040.00417.43
8.1.80.0040.00417.54
8.1.70.0040.00417.40
8.1.60.0000.00917.52
8.1.50.0030.00617.58
8.1.40.0000.00717.45
8.1.30.0040.00417.64
8.1.20.0060.00317.70
8.1.10.0030.00517.53
8.1.00.0020.00517.47
8.0.300.0000.00819.84
8.0.290.0040.00416.88
8.0.280.0050.00318.52
8.0.270.0000.00717.27
8.0.260.0040.00416.91
8.0.250.0040.00417.09
8.0.240.0000.00817.04
8.0.230.0080.00016.96
8.0.220.0050.00217.06
8.0.210.0070.00017.02
8.0.200.0000.00717.06
8.0.190.0040.00417.05
8.0.180.0000.00917.06
8.0.170.0050.00317.01
8.0.160.0070.00016.97
8.0.150.0000.00716.97
8.0.140.0040.00416.98
8.0.130.0000.00613.38
8.0.120.0040.00416.81
8.0.110.0000.00817.04
8.0.100.0070.00016.97
8.0.90.0000.00716.88
8.0.80.0100.00716.97
8.0.70.0020.00516.98
8.0.60.0070.00016.97
8.0.50.0000.00817.00
8.0.30.0140.00917.13
8.0.20.0140.00617.40
8.0.10.0050.00217.00
8.0.00.0150.00816.90
7.4.330.0050.00015.02
7.4.320.0050.00216.56
7.4.300.0030.00316.40
7.4.290.0000.00716.64
7.4.280.0040.00416.43
7.4.270.0000.00716.59
7.4.260.0070.00016.54
7.4.250.0040.00416.52
7.4.240.0030.00416.46
7.4.230.0030.00316.34
7.4.220.0060.01116.66
7.4.210.0080.00816.54
7.4.200.0080.00016.46
7.4.190.0070.00016.40
7.4.160.0140.00316.50
7.4.150.0130.00517.40
7.4.140.0100.01017.86
7.4.130.0080.01316.53
7.4.120.0080.01016.52
7.4.110.0070.01116.61
7.4.100.0090.00916.73
7.4.90.0130.01016.40
7.4.80.0140.01016.59
7.4.70.0140.00716.55
7.4.60.0070.01116.53
7.4.50.0040.00016.38
7.4.40.0100.00622.77
7.4.30.0130.00416.64
7.4.00.0050.01215.13
7.3.330.0020.00213.32
7.3.320.0050.00013.29
7.3.310.0000.00716.27
7.3.300.0030.00316.44
7.3.290.0040.01116.41
7.3.280.0080.01116.32
7.3.270.0070.01117.40
7.3.260.0060.01216.48
7.3.250.0080.01116.55
7.3.240.0000.01616.39
7.3.230.0110.00816.48
7.3.210.0090.01016.40
7.3.200.0100.01019.39
7.3.190.0110.00716.41
7.3.180.0100.00616.37
7.3.170.0090.00616.45
7.3.160.0100.01416.34
7.3.120.0100.00614.87
7.3.110.0090.00915.01
7.3.100.0000.01414.96
7.3.90.0060.00615.13
7.3.80.0060.00614.86
7.3.70.0060.01214.63
7.3.60.0060.00914.93
7.3.50.0000.01514.78
7.3.40.0030.00714.89
7.3.30.0030.01314.84
7.3.20.0030.00716.63
7.3.10.0040.00716.93
7.3.00.0070.00316.70
7.2.330.0060.01316.68
7.2.320.0090.00916.67
7.2.310.0100.01316.40
7.2.300.0090.00916.63
7.2.290.0060.00916.75
7.2.250.0070.01114.99
7.2.240.0100.01015.01
7.2.230.0070.01015.29
7.2.220.0060.00915.26
7.2.210.0060.01314.95
7.2.200.0060.00915.04
7.2.190.0130.00315.21
7.2.180.0080.00815.04
7.2.170.0060.00615.05
7.2.80.0070.00716.95
7.2.60.0040.00816.61
7.2.00.0070.00719.31
7.1.330.0040.01215.68
7.1.320.0040.01115.85
7.1.310.0130.00315.78
7.1.300.0090.00915.82
7.1.290.0000.01015.67
7.1.280.0040.00815.46
7.1.270.0070.00715.74
7.1.260.0070.00715.56
7.1.200.0070.00315.66
7.1.100.0060.00918.18
7.1.70.0070.00717.27
7.1.60.0100.01619.24
7.1.50.0180.00634.79
7.1.00.0070.07322.36
7.0.200.0040.00416.88
7.0.140.0000.07322.12
7.0.100.0230.03720.06
7.0.90.0100.07019.91
7.0.80.0200.04719.93
7.0.70.0030.06719.94
7.0.60.0000.08019.99
7.0.50.0330.07720.15
7.0.40.0000.05320.10
7.0.30.0030.06320.18
7.0.20.0100.08320.08
7.0.10.0030.06020.11
7.0.00.0170.06720.08
5.6.280.0030.07321.11
5.6.250.0100.05720.79
5.6.240.0100.03720.64
5.6.230.0030.04320.60
5.6.220.0070.03720.57
5.6.210.0030.04020.58
5.6.200.0070.04721.04
5.6.190.0100.03721.03
5.6.180.0030.08321.04
5.6.170.0100.04320.97
5.6.160.0030.06020.96
5.6.150.0070.03721.11
5.6.140.0030.07721.05
5.6.130.0130.07321.19
5.6.120.0070.07021.11
5.6.110.0070.06021.00
5.6.100.0000.04720.95
5.6.90.0100.07720.95
5.6.80.0100.08020.48
5.6.70.0000.08020.46
5.6.60.0000.04320.52
5.6.50.0070.07720.35
5.6.40.0070.07720.41
5.6.30.0030.08320.29
5.6.20.0030.06320.33
5.6.10.0070.08020.32
5.6.00.0100.04020.40
5.5.380.0070.03320.36
5.5.370.0030.04720.40
5.5.360.0030.04020.37
5.5.350.0030.05020.35
5.5.340.0070.04020.91
5.5.330.0130.07020.79
5.5.320.0030.04320.80
5.5.310.0000.05720.81
5.5.300.0030.06720.91
5.5.290.0070.04720.74
5.5.280.0030.04020.74
5.5.270.0030.05720.87
5.5.260.0130.05020.92
5.5.250.0030.04020.71
5.5.240.0030.08020.26
5.5.230.0030.05720.19
5.5.220.0070.08020.02
5.5.210.0100.04020.18
5.5.200.0100.06020.28
5.5.190.0030.08320.15
5.5.180.0000.05320.19
5.5.160.0030.05320.20
5.5.150.0100.07320.23
5.5.140.0130.07320.16
5.5.130.0030.03720.28
5.5.120.0130.06020.25
5.5.110.0030.04320.24
5.5.100.0070.03320.11
5.5.90.0000.05320.05
5.5.80.0070.04720.08
5.5.70.0000.04319.95
5.5.60.0070.03320.07
5.5.50.0030.07320.04
5.5.40.0030.04720.04
5.5.30.0070.03720.16
5.5.20.0070.05720.15
5.5.10.0100.05320.05
5.5.00.0000.05720.04
5.4.450.0070.04019.45
5.4.440.0130.05319.44
5.4.430.0000.06319.35
5.4.420.0070.08019.13
5.4.410.0030.07019.32
5.4.400.0070.03319.14
5.4.390.0030.08319.06
5.4.380.0000.04019.06
5.4.370.0100.04319.23
5.4.360.0000.07319.23
5.4.350.0100.04719.05
5.4.340.0030.05019.04
5.4.320.0030.08319.12
5.4.310.0100.03319.02
5.4.300.0070.08018.94
5.4.290.0030.06018.96
5.4.280.0070.03319.04
5.4.270.0030.05019.11
5.4.260.0030.05719.07
5.4.250.0070.03019.22
5.4.240.0030.04718.97
5.4.230.0070.06019.11
5.4.220.0170.06018.96
5.4.210.0100.05319.06
5.4.200.0070.04319.12
5.4.190.0170.04719.02
5.4.180.0100.03018.92
5.4.170.0100.06019.04
5.4.160.0000.04319.07
5.4.150.0000.04318.94
5.4.140.0030.03716.35
5.4.130.0070.03316.36
5.4.120.0100.06316.36
5.4.110.0070.06016.43
5.4.100.0000.04016.26
5.4.90.0170.06016.38
5.4.80.0100.05316.45
5.4.70.0030.06016.29
5.4.60.0030.03316.43
5.4.50.0070.03016.41
5.4.40.0130.05716.23
5.4.30.0030.03316.18
5.4.20.0070.06016.30
5.4.10.0000.04016.21
5.4.00.0070.04015.84
5.3.290.0000.04714.66
5.3.280.0070.07714.60
5.3.270.0030.06314.46
5.3.260.0100.06314.60
5.3.250.0100.03014.45
5.3.240.0030.04014.55
5.3.230.0100.07014.45
5.3.220.0030.05014.43
5.3.210.0070.06314.43
5.3.200.0030.08714.54
5.3.190.0100.05314.51
5.3.180.0030.07314.54
5.3.170.0030.03714.56
5.3.160.0030.08014.50
5.3.150.0030.04714.38
5.3.140.0100.07014.57
5.3.130.0030.03714.54
5.3.120.0170.06014.54
5.3.110.0030.04314.50
5.3.100.0070.03714.02
5.3.90.0130.07014.00
5.3.80.0030.03713.97
5.3.70.0030.07713.92
5.3.60.0230.05013.86
5.3.50.0000.06013.91
5.3.40.0070.03313.71
5.3.30.0030.05013.88
5.3.20.0070.05313.66
5.3.10.0030.07013.43
5.3.00.0170.06013.49
5.2.170.0030.05311.73
5.2.160.0030.03011.73
5.2.150.0070.05311.73
5.2.140.0070.05011.73
5.2.130.0130.04311.73
5.2.120.0070.06011.73
5.2.110.0030.06711.73
5.2.100.0100.05011.73
5.2.90.0000.04311.73
5.2.80.0030.06311.73
5.2.70.0030.02711.73
5.2.60.0030.05711.73
5.2.50.0070.02711.73
5.2.40.0070.05311.73
5.2.30.0070.02711.73
5.2.20.0130.05011.73
5.2.10.0000.03011.73
5.2.00.0030.03311.73
5.1.60.0000.02711.73
5.1.50.0000.02711.73
5.1.40.0030.02311.73
5.1.30.0030.02711.73
5.1.20.0030.02311.73
5.1.10.0030.02311.73
5.1.00.0000.02711.73
5.0.50.0000.02311.73
5.0.40.0000.02311.73
5.0.30.0070.02011.73
5.0.20.0030.01711.73
5.0.10.0000.02311.73
5.0.00.0030.03011.73
4.4.90.0000.02011.73
4.4.80.0030.01311.73
4.4.70.0000.02011.73
4.4.60.0000.04011.73
4.4.50.0000.01311.73
4.4.40.0000.02311.73
4.4.30.0000.01311.73
4.4.20.0000.01711.73
4.4.10.0030.01311.73
4.4.00.0030.01711.73
4.3.110.0000.01311.73
4.3.100.0000.01711.73
4.3.90.0070.01011.73
4.3.80.0000.02011.73
4.3.70.0000.01711.73
4.3.60.0070.00711.73
4.3.50.0000.01311.73
4.3.40.0000.02011.73
4.3.30.0000.01711.73
4.3.20.0030.01311.73
4.3.10.0000.01711.73
4.3.00.0000.01311.73

preferences:
50.9 ms | 401 KiB | 5 Q