3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<EOT etc etc etc content [crowdpdf-total=field_585b0b3288d2e] etc etc [crowdpdf-total=field_585b0b3288d2f] etc content EOT; $replacements = [ 'field_585b0b3288d2e'=> 864, 'field_585b0b3288d2f' => 987, ]; foreach ($replacements as $find => $replace) { $string = str_replace("[crowdpdf-total=$find]", $replace, $string); } echo $string;

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.80.0060.00316.63
8.3.70.0090.00918.43
8.3.60.0070.01016.38
8.3.50.0080.01022.03
8.3.40.0080.00819.00
8.3.30.0110.00318.70
8.3.20.0040.00420.78
8.3.10.0040.00421.63
8.3.00.0050.00319.56
8.2.200.0060.00318.16
8.2.190.0130.00616.75
8.2.180.0130.01025.92
8.2.170.0140.00718.82
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0030.00624.66
8.2.130.0000.00819.13
8.2.120.0040.00426.35
8.2.110.0070.00322.11
8.2.100.0080.00419.51
8.2.90.0040.00419.09
8.2.80.0000.00819.77
8.2.70.0000.00817.61
8.2.60.0050.00217.63
8.2.50.0050.00318.10
8.2.40.0110.00019.29
8.2.30.0050.00219.21
8.2.20.0050.00217.95
8.2.10.0040.00418.13
8.2.00.0040.00417.82
8.1.290.0040.00430.84
8.1.280.0150.00325.92
8.1.270.0040.00423.92
8.1.260.0050.00226.35
8.1.250.0050.00328.09
8.1.240.0060.00323.62
8.1.230.0100.00319.17
8.1.220.0000.00717.78
8.1.210.0060.00318.77
8.1.200.0030.00617.48
8.1.190.0040.00417.43
8.1.180.0000.00818.10
8.1.170.0050.00318.61
8.1.160.0020.00518.81
8.1.150.0030.00520.89
8.1.140.0070.00019.51
8.1.130.0000.01019.06
8.1.120.0000.00717.37
8.1.110.0000.00717.43
8.1.100.0030.00317.48
8.1.90.0070.00017.41
8.1.80.0040.00717.45
8.1.70.0000.00717.49
8.1.60.0040.00417.42
8.1.50.0040.00417.55
8.1.40.0040.00417.41
8.1.30.0040.00417.67
8.1.20.0040.00417.57
8.1.10.0030.00617.57
8.1.00.0040.00417.48
8.0.300.0070.00018.77
8.0.290.0040.00417.16
8.0.280.0030.00318.50
8.0.270.0000.00717.27
8.0.260.0000.00617.26
8.0.250.0070.00017.06
8.0.240.0070.00016.94
8.0.230.0000.00816.96
8.0.220.0000.00917.00
8.0.210.0080.00016.86
8.0.200.0070.00017.06
8.0.190.0040.00416.98
8.0.180.0030.00616.89
8.0.170.0020.00516.92
8.0.160.0040.00416.94
8.0.150.0000.00716.88
8.0.140.0070.00016.93
8.0.130.0060.00013.44
8.0.120.0040.00416.90
8.0.110.0050.00217.01
8.0.100.0070.00016.91
8.0.90.0040.00416.93
8.0.80.0090.00616.88
8.0.70.0070.00016.93
8.0.60.0040.00416.88
8.0.50.0000.00816.85
8.0.30.0080.01317.18
8.0.20.0070.01217.40
8.0.10.0040.00416.95
8.0.00.0070.01016.54
7.4.330.0050.00015.55
7.4.320.0030.00316.51
7.4.300.0000.00716.52
7.4.290.0030.00316.41
7.4.280.0040.00416.61
7.4.270.0030.00316.57
7.4.260.0000.00716.59
7.4.250.0040.00416.66
7.4.240.0030.00316.50
7.4.230.0000.00716.37
7.4.220.0060.01516.61
7.4.210.0050.01016.51
7.4.200.0070.00016.51
7.4.160.0060.01016.45
7.4.150.0180.00017.40
7.4.140.0100.00817.86
7.4.130.0130.00616.51
7.4.120.0140.00416.46
7.4.110.0070.01016.65
7.4.100.0090.01316.74
7.4.90.0060.01516.68
7.4.80.0030.01219.39
7.4.70.0030.01316.46
7.4.60.0060.00916.50
7.4.50.0030.01216.44
7.4.40.0140.00716.58
7.4.30.0080.00816.57
7.4.00.0090.00714.88
7.3.330.0000.00613.25
7.3.320.0000.00513.32
7.3.310.0050.00316.24
7.3.300.0030.00316.30
7.3.290.0060.00916.45
7.3.280.0070.00716.42
7.3.270.0120.00817.40
7.3.260.0120.00716.30
7.3.250.0090.01016.52
7.3.240.0050.01316.56
7.3.230.0070.01116.63
7.3.210.0120.00616.64
7.3.200.0030.01316.34
7.3.190.0070.01016.50
7.3.180.0120.00316.36
7.3.170.0100.01016.38
7.3.160.0070.01016.57
7.3.120.0070.01015.00
7.3.110.0090.00614.82
7.3.100.0070.00715.10
7.3.90.0040.00815.06
7.3.80.0040.01214.81
7.3.70.0040.00714.98
7.3.60.0030.01114.66
7.3.50.0090.00314.66
7.3.40.0040.00714.85
7.3.30.0030.00714.88
7.3.20.0070.00716.78
7.3.10.0110.00516.54
7.3.00.0080.00816.56
7.2.330.0140.00516.73
7.2.320.0030.01316.55
7.2.310.0070.01116.68
7.2.300.0000.02016.71
7.2.290.0060.01016.59
7.2.250.0040.01514.95
7.2.240.0100.01015.14
7.2.230.0100.00615.10
7.2.220.0000.01815.05
7.2.210.0110.00415.04
7.2.200.0030.00915.11
7.2.190.0070.00815.18
7.2.180.0000.01114.94
7.2.170.0030.01014.65
7.2.130.0100.00516.75
7.2.120.0050.01016.70
7.2.110.0080.00516.37
7.2.100.0070.00716.67
7.2.90.0120.00616.59
7.2.80.0080.00916.72
7.2.70.0080.00416.81
7.2.60.0090.00816.77
7.2.50.0090.01216.68
7.2.40.0070.00916.35
7.2.30.0130.00716.94
7.2.20.0110.00916.70
7.2.10.0090.00816.77
7.2.00.0110.00616.63
7.1.330.0030.01015.98
7.1.320.0030.01015.89
7.1.310.0060.00315.75
7.1.300.0000.01515.80
7.1.290.0060.00615.70
7.1.280.0070.00715.74
7.1.270.0030.01015.62
7.1.260.0070.00715.88
7.1.250.0050.00915.63
7.1.200.0050.00515.68
7.1.70.0040.00417.19
7.1.60.0040.00717.23
7.1.00.0700.06020.77
7.0.200.0120.00614.98
7.0.140.0830.05720.15
7.0.130.0830.04720.30
7.0.120.0870.08020.17
7.0.110.0830.05320.14
7.0.100.0730.05320.15
7.0.90.0730.05720.17
7.0.80.0800.05320.34
7.0.70.0770.06720.30
7.0.60.1500.07020.22
7.0.50.0800.05320.31
7.0.40.0930.06020.34
7.0.30.0670.06020.34
7.0.20.0870.05720.27
7.0.10.0730.06020.18
7.0.00.0870.06320.35
5.6.290.0070.06020.69
5.6.280.0070.06721.09
5.6.270.0070.06020.96
5.6.260.0170.05020.91
5.6.250.0070.05720.92
5.6.240.0100.05720.85
5.6.230.0070.06020.97
5.6.220.0000.06720.79
5.6.210.0130.05720.90
5.6.200.0200.05020.78
5.6.190.0070.06720.81
5.6.180.0170.05720.82
5.6.170.0070.06721.02
5.6.160.0130.08021.08
5.6.150.0230.08021.06
5.6.140.0100.09021.02
5.6.130.0330.06020.81
5.6.120.0200.05320.88
5.6.110.0170.05720.84
5.6.100.0100.06320.85
5.6.90.0130.08021.03
5.6.80.0130.08020.42
5.6.70.0070.06720.45
5.6.60.0170.06320.39
5.6.50.0100.08320.24
5.6.40.0130.07320.35
5.6.30.0070.06020.38
5.6.20.0100.05720.35
5.6.10.0170.04720.20
5.6.00.0230.04020.14

preferences:
28.3 ms | 402 KiB | 5 Q