3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tdr="<p>Previous reports stated that the Pokemon Alpha.</p><p>On the other hand, Pokemon Diamond and Pearl are reported .</p><p>On the other hand, Pokemon Diamond and Pearl are reported.</p>"; $pos = strrpos($tdr, '<p>'); $newtdr = substr($tdr,0,$pos) . ' Hello ' . substr($tdr, $pos); echo $newtdr;

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.40.0000.01418.63
8.3.30.0090.00618.90
8.3.20.0000.00720.24
8.3.10.0070.00021.95
8.3.00.0030.00617.88
8.2.170.0170.00022.96
8.2.160.0100.01020.57
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00421.09
8.2.110.0060.00322.29
8.2.100.0040.01217.72
8.2.90.0050.00319.05
8.2.80.0030.00617.97
8.2.70.0040.00417.50
8.2.60.0070.00317.77
8.2.50.0050.00318.07
8.2.40.0040.00418.22
8.2.30.0040.00417.95
8.2.20.0040.00417.59
8.2.10.0000.00718.18
8.2.00.0090.00017.66
8.1.270.0040.00424.02
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.79
8.1.230.0110.00018.97
8.1.220.0070.00017.74
8.1.210.0040.00418.77
8.1.200.0150.00516.88
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0080.00018.59
8.1.160.0050.00222.00
8.1.150.0040.00418.82
8.1.140.0040.00417.40
8.1.130.0030.00317.75
8.1.120.0050.00217.44
8.1.110.0030.00517.43
8.1.100.0080.00017.45
8.1.90.0080.00317.36
8.1.80.0070.00017.34
8.1.70.0030.00317.43
8.1.60.0100.00017.55
8.1.50.0000.00817.49
8.1.40.0040.00417.56
8.1.30.0080.00017.63
8.1.20.0030.00517.55
8.1.10.0000.00717.52
8.1.00.0050.00217.30
8.0.300.0000.00818.77
8.0.290.0070.00016.63
8.0.280.0070.00018.37
8.0.270.0030.00317.32
8.0.260.0070.00017.30
8.0.250.0030.00316.98
8.0.240.0040.00416.98
8.0.230.0070.00016.92
8.0.220.0050.00216.95
8.0.210.0040.00416.98
8.0.200.0030.00317.02
8.0.190.0040.00416.93
8.0.180.0000.00716.93
8.0.170.0000.00816.93
8.0.160.0030.00316.91
8.0.150.0000.00716.80
8.0.140.0000.00816.77
8.0.130.0000.00513.33
8.0.120.0000.00716.92
8.0.110.0050.00316.93
8.0.100.0080.00016.79
8.0.90.0070.00016.89
8.0.80.0120.00316.86
8.0.70.0050.00216.90
8.0.60.0030.00516.90
8.0.50.0050.00316.97
8.0.30.0110.00817.09
8.0.20.0050.01417.40
8.0.10.0040.00417.02
8.0.00.0070.01116.62
7.4.330.0000.00515.07
7.4.320.0000.00616.62
7.4.300.0030.00316.46
7.4.290.0070.00016.58
7.4.280.0000.00816.49
7.4.270.0030.00316.65
7.4.260.0030.00316.50
7.4.250.0040.00416.58
7.4.240.0020.00516.45
7.4.230.0030.00316.64
7.4.220.0100.00716.59
7.4.210.0030.01016.51
7.4.200.0000.00716.36
7.4.160.0000.01616.47
7.4.150.0150.00417.40
7.4.140.0150.00517.86
7.4.130.0040.01516.26
7.4.120.0030.01716.42
7.4.110.0060.00916.25
7.4.100.0070.01516.53
7.4.90.0130.00716.44
7.4.80.0090.00919.39
7.4.70.0150.00616.35
7.4.60.0190.00016.38
7.4.50.0000.00916.63
7.4.40.0070.01016.54
7.4.30.0030.01316.65
7.4.00.0070.00714.94
7.3.330.0020.00213.06
7.3.320.0020.00212.99
7.3.310.0070.00016.36
7.3.300.0030.00316.19
7.3.290.0080.00616.23
7.3.280.0100.00616.29
7.3.270.0100.00717.40
7.3.260.0030.01416.44
7.3.240.0120.00616.29
7.3.230.0070.01016.52
7.3.210.0110.00616.23
7.3.200.0120.00819.39
7.3.190.0160.00016.23
7.3.180.0100.00716.23
7.3.170.0130.00316.32
7.3.160.0070.00716.31
7.3.120.0130.00314.82
7.2.330.0090.00916.79
7.2.320.0060.01216.71
7.2.310.0030.01316.63
7.2.300.0080.00816.37
7.2.290.0070.01016.68
7.2.60.0040.00416.95
7.2.00.0040.01119.02
7.1.200.0070.00415.83
7.1.100.0080.00317.88
7.1.70.0000.01517.13
7.1.60.0170.00719.14
7.1.50.0090.01216.86
7.1.00.0070.07322.42
7.0.200.0000.01216.95
7.0.140.0030.07022.12
7.0.60.0130.06719.90
7.0.50.0170.06717.89
7.0.40.0230.04020.08
7.0.30.0200.04020.09
7.0.20.0330.03320.12
7.0.10.0100.04020.33
7.0.00.0070.07320.17
5.6.280.0100.06720.98
5.6.210.0130.07320.66
5.6.200.0030.04018.21
5.6.190.0030.07720.56
5.6.180.0300.04020.56
5.6.170.0170.04320.48
5.6.160.0100.03720.33
5.6.150.0070.07018.07
5.6.140.0030.04018.21
5.6.130.0070.04018.11
5.6.120.0000.06721.09
5.6.110.0070.08020.88
5.6.100.0000.04321.08
5.6.90.0100.06021.09
5.6.80.0070.03720.50
5.5.350.0170.04320.41
5.5.340.0070.04717.89
5.5.330.0070.04320.27
5.5.320.0270.03720.18
5.5.310.0230.04020.28
5.5.300.0070.07717.96
5.5.290.0130.07317.88
5.5.280.0100.08320.75
5.5.270.0070.03720.87
5.5.260.0030.04020.62
5.5.250.0170.06720.58
5.5.240.0200.07320.28
5.4.450.0300.04319.41
5.4.440.0300.04319.24
5.4.430.0470.03719.09
5.4.420.0300.04319.20
5.4.410.0330.04319.28
5.4.400.0430.04018.89
5.4.390.0330.04019.24
5.4.380.1100.07318.68
5.4.370.1170.04318.77
5.4.360.0930.05318.74
5.4.350.1000.08318.72
5.4.340.1230.05718.70
5.4.320.0030.06112.45
5.4.310.0070.03612.45
5.4.300.0050.04312.45
5.4.290.0070.03512.45
5.4.280.0040.03712.35
5.4.270.0100.03912.34
5.4.260.0050.03712.34
5.4.250.0040.03812.34
5.4.240.0020.03912.34
5.4.230.0070.03712.34
5.4.220.0080.03412.34
5.4.210.0070.03612.34
5.4.200.0040.04012.34
5.4.190.0060.03512.34
5.4.180.0080.03212.33
5.4.170.0050.03612.34
5.4.160.0060.03712.34
5.4.150.0050.03612.34
5.4.140.0030.03812.02
5.4.130.0060.03712.01
5.4.120.0040.03711.97
5.4.110.0070.03911.96
5.4.100.0040.03611.96
5.4.90.0060.03611.96
5.4.80.0110.03511.96
5.4.70.0050.03711.96
5.4.60.0050.03911.96
5.4.50.0060.03911.96
5.4.40.0050.03411.95
5.4.30.0040.03611.95
5.4.20.0040.03511.94
5.4.10.0070.03211.95
5.4.00.0060.03711.44
5.3.290.0040.04112.80
5.3.280.0050.04412.71
5.3.270.0060.04112.73
5.3.260.0090.03512.72
5.3.250.0030.04212.72
5.3.240.0080.04012.72
5.3.230.0050.03912.71
5.3.220.0010.04212.68
5.3.210.0090.04612.68
5.3.200.0080.04212.68
5.3.190.0110.03612.68
5.3.180.0090.03212.68
5.3.170.0070.03412.67
5.3.160.0020.03912.67
5.3.150.0090.03512.68
5.3.140.0040.04012.66
5.3.130.0070.03812.66
5.3.120.0050.03912.66
5.3.110.0050.03912.66
5.3.100.0070.03512.12
5.3.90.0060.03612.08
5.3.80.0040.03812.07
5.3.70.0050.03712.07
5.3.60.0050.03612.07
5.3.50.0040.03712.00
5.3.40.0050.03712.00
5.3.30.0060.03911.94
5.3.20.0060.03411.72
5.3.10.0060.03511.69
5.3.00.0060.03611.68
5.2.170.0020.0349.18
5.2.160.0080.0279.18
5.2.150.0060.0299.17
5.2.140.0080.0289.17
5.2.130.0040.0309.14
5.2.120.0020.0329.14
5.2.110.0090.0259.14
5.2.100.0040.0299.14
5.2.90.0030.0309.14
5.2.80.0040.0319.13
5.2.70.0040.0329.13
5.2.60.0050.0309.09
5.2.50.0060.0289.06
5.2.40.0050.0289.04
5.2.30.0090.0249.01
5.2.20.0070.0279.00
5.2.10.0070.0258.92
5.2.00.0050.0288.78
5.1.60.0060.0228.06
5.1.50.0040.0258.05
5.1.40.0100.0208.04
5.1.30.0050.0268.39
5.1.20.0030.0278.41
5.1.10.0060.0248.13
5.1.00.0050.0258.14
5.0.50.0030.0206.61
5.0.40.0030.0196.48
5.0.30.0030.0316.29
5.0.20.0030.0196.26
5.0.10.0040.0196.23
5.0.00.0020.0316.23
4.4.90.0040.0144.78
4.4.80.0040.0144.76
4.4.70.0010.0174.76
4.4.60.0030.0154.76
4.4.50.0030.0154.77
4.4.40.0020.0254.71
4.4.30.0000.0184.76
4.4.20.0030.0154.84
4.4.10.0020.0164.85
4.4.00.0010.0264.76
4.3.110.0010.0174.67
4.3.100.0040.0144.66
4.3.90.0020.0154.63
4.3.80.0030.0264.58
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0020.0164.63
4.3.40.0040.0234.54
4.3.30.0010.0173.28
4.3.20.0010.0173.26
4.3.10.0020.0153.22
4.3.00.0030.01315.29

preferences:
47.56 ms | 400 KiB | 5 Q