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('<p>', $tdr); $newtdr = substr($tdr,0,$pos) . ' Hello ' . substr($tdr, $pos);

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.0070.01018.39
8.3.50.0080.00822.05
8.3.40.0140.00018.64
8.3.30.0070.00718.98
8.3.20.0030.00320.34
8.3.10.0050.00321.75
8.3.00.0060.00317.66
8.2.180.0140.00716.38
8.2.170.0110.00322.96
8.2.160.0100.00320.45
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0050.00326.16
8.2.120.0030.00518.77
8.2.110.0090.00022.16
8.2.100.0080.00317.59
8.2.90.0060.00319.09
8.2.80.0080.00017.97
8.2.70.0000.00817.49
8.2.60.0100.00317.66
8.2.50.0000.00818.07
8.2.40.0030.00618.03
8.2.30.0050.00218.00
8.2.20.0030.00517.56
8.2.10.0050.00318.07
8.2.00.0000.00817.56
8.1.280.0090.00625.92
8.1.270.0080.00023.91
8.1.260.0120.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00317.36
8.1.230.0060.00617.42
8.1.220.0070.00318.77
8.1.210.0000.00918.91
8.1.200.0090.00317.35
8.1.190.0000.00816.86
8.1.180.0030.00618.10
8.1.170.0040.00418.59
8.1.160.0050.00222.07
8.1.150.0040.00418.85
8.1.140.0050.00317.33
8.1.130.0070.00017.70
8.1.120.0040.00417.47
8.1.110.0000.00817.47
8.1.100.0020.00517.42
8.1.90.0040.00717.46
8.1.80.0030.00517.39
8.1.70.0000.00617.44
8.1.60.0000.01417.60
8.1.50.0000.00817.51
8.1.40.0080.00017.54
8.1.30.0050.00317.70
8.1.20.0030.00517.64
8.1.10.0040.00417.48
8.1.00.0040.00417.30
8.0.300.0070.00019.96
8.0.290.0030.00616.75
8.0.280.0000.00718.45
8.0.270.0030.00317.26
8.0.260.0030.00317.30
8.0.250.0000.00716.97
8.0.240.0070.00016.95
8.0.230.0030.00316.93
8.0.220.0030.00316.77
8.0.210.0000.00816.77
8.0.200.0030.00316.97
8.0.190.0040.00416.95
8.0.180.0000.00816.89
8.0.170.0000.00916.80
8.0.160.0000.00716.97
8.0.150.0030.00316.88
8.0.140.0000.00716.88
8.0.130.0030.00313.32
8.0.120.0000.00816.75
8.0.110.0050.00316.72
8.0.100.0050.00217.01
8.0.90.0000.00716.92
8.0.80.0110.00316.90
8.0.70.0030.00316.85
8.0.60.0000.00716.80
8.0.50.0000.00716.73
8.0.30.0110.01017.21
8.0.20.0110.00917.40
8.0.10.0000.00716.76
8.0.00.0140.00616.67
7.4.330.0000.00515.13
7.4.320.0060.00016.58
7.4.300.0030.00316.58
7.4.290.0000.00816.40
7.4.280.0070.00016.51
7.4.270.0030.00316.63
7.4.260.0100.00016.56
7.4.250.0000.00716.49
7.4.240.0060.00116.60
7.4.230.0030.00516.52
7.4.220.0090.00916.31
7.4.210.0160.00616.39
7.4.200.0000.00816.57
7.4.160.0060.00916.52
7.4.150.0130.00617.40
7.4.140.0090.01117.86
7.4.130.0090.00916.34
7.4.120.0130.00516.54
7.4.110.0040.01316.60
7.4.100.0150.00716.57
7.4.90.0080.00816.36
7.4.80.0070.01019.39
7.4.70.0100.00716.46
7.4.60.0060.00916.45
7.4.50.0030.00616.45
7.4.40.0120.00616.34
7.4.30.0090.00616.52
7.4.00.0000.01214.48
7.3.330.0000.00512.90
7.3.320.0000.00612.99
7.3.310.0020.00516.20
7.3.300.0050.00316.24
7.3.290.0160.00316.15
7.3.280.0070.00816.23
7.3.270.0150.00717.40
7.3.260.0110.00616.30
7.3.240.0100.01316.47
7.3.230.0080.01116.42
7.3.210.0120.00916.17
7.3.200.0070.01019.39
7.3.190.0040.01516.25
7.3.180.0110.00416.29
7.3.170.0080.00816.44
7.3.160.0090.00616.37
7.3.120.0110.00414.66
7.3.10.0040.01116.73
7.3.00.0120.00316.64
7.2.330.0130.01016.63
7.2.320.0140.00516.41
7.2.310.0070.01416.30
7.2.300.0040.01216.24
7.2.290.0070.01016.51
7.2.130.0120.00316.86
7.2.120.0060.00916.82
7.2.110.0070.00716.70
7.2.100.0100.00716.72
7.2.90.0080.00816.91
7.2.80.0120.00316.69
7.2.70.0120.00617.03
7.2.60.0030.00916.57
7.2.50.0040.01116.74
7.2.40.0060.00316.89
7.2.30.0070.00716.64
7.2.20.0060.00916.78
7.2.10.0100.00716.67
7.2.00.0100.00618.13
7.1.250.0070.00715.77
7.1.100.0040.00717.72
7.1.70.0040.01617.09
7.1.60.0110.01419.14
7.1.50.0070.01416.94
7.1.00.0030.07722.44
7.0.200.0030.00316.63
7.0.140.0030.07322.10
7.0.60.0100.07719.91
7.0.50.0030.04017.89
7.0.40.0170.08320.36
7.0.30.0170.04720.17
7.0.20.0400.06720.30
7.0.10.0200.07720.26
7.0.00.0070.07020.08
5.6.280.0000.07721.01
5.6.210.0070.03720.54
5.6.200.0170.06718.23
5.6.190.0030.06320.77
5.6.180.0230.04320.61
5.6.170.0230.03320.49
5.6.160.0030.08720.63
5.6.150.0030.06318.16
5.6.140.0100.07718.15
5.6.130.0070.06018.11
5.6.120.0030.04320.98
5.6.110.0030.08021.10
5.6.100.0030.08321.00
5.6.90.0130.08020.87
5.6.80.0170.07720.34
5.5.350.0300.08020.32
5.5.340.0000.05717.96
5.5.330.0070.04720.07
5.5.320.0300.04020.16
5.5.310.0230.04320.50
5.5.300.0130.08017.92
5.5.290.0000.06017.89
5.5.280.0170.07320.79
5.5.270.0030.08020.79
5.5.260.0170.04020.91
5.5.250.0070.06320.57
5.5.240.0170.08020.03
5.4.450.0130.04719.40
5.4.440.0370.03719.54
5.4.430.0130.04019.23
5.4.420.0130.05019.40
5.4.410.0230.05019.28
5.4.400.0170.04318.78
5.4.390.0330.04318.93
5.4.380.1170.05018.70
5.4.370.0830.05718.62
5.4.360.1130.05718.65
5.4.350.1070.05018.79
5.4.340.1170.06718.65
5.4.320.0080.04212.46
5.4.310.0040.03912.45
5.4.300.0060.05112.46
5.4.290.0040.03912.45
5.4.280.0040.03712.35
5.4.270.0080.03412.35
5.4.260.0090.03612.34
5.4.250.0060.03712.35
5.4.240.0060.03512.35
5.4.230.0040.03812.34
5.4.220.0060.04212.34
5.4.210.0060.04512.34
5.4.200.0080.04712.34
5.4.190.0100.04112.33
5.4.180.0050.03612.34
5.4.170.0040.03712.34
5.4.160.0030.04312.34
5.4.150.0080.03312.34
5.4.140.0090.03912.02
5.4.130.0070.03912.01
5.4.120.0090.03111.96
5.4.110.0050.03611.96
5.4.100.0090.04211.96
5.4.90.0050.03711.96
5.4.80.0050.03711.96
5.4.70.0080.03511.96
5.4.60.0080.04211.96
5.4.50.0040.03611.96
5.4.40.0060.03411.95
5.4.30.0080.03311.95
5.4.20.0060.03411.94
5.4.10.0090.03111.95
5.4.00.0070.04111.43
5.3.290.0070.03912.80
5.3.280.0080.03612.71
5.3.270.0110.04112.72
5.3.260.0090.04512.72
5.3.250.0100.04412.72
5.3.240.0060.05612.71
5.3.230.0080.03512.70
5.3.220.0070.04312.68
5.3.210.0060.04512.68
5.3.200.0060.04012.68
5.3.190.0030.04712.67
5.3.180.0080.03712.67
5.3.170.0030.03912.67
5.3.160.0070.03512.67
5.3.150.0050.03812.68
5.3.140.0080.03912.66
5.3.130.0050.03912.66
5.3.120.0070.04612.66
5.3.110.0050.03912.66
5.3.100.0110.03712.12
5.3.90.0060.04612.09
5.3.80.0090.03812.08
5.3.70.0090.03812.07
5.3.60.0040.03912.06
5.3.50.0080.04212.00
5.3.40.0080.04212.00
5.3.30.0040.03611.94
5.3.20.0070.03611.72
5.3.10.0050.04511.69
5.3.00.0080.04011.68
5.2.170.0060.0329.18
5.2.160.0030.0329.18
5.2.150.0090.0329.18
5.2.140.0030.0409.17
5.2.130.0030.0319.14
5.2.120.0080.0359.14
5.2.110.0040.0299.14
5.2.100.0040.0469.14
5.2.90.0030.0329.14
5.2.80.0050.0329.14
5.2.70.0060.0309.13
5.2.60.0020.0339.09
5.2.50.0030.0319.05
5.2.40.0030.0309.04
5.2.30.0040.0309.01
5.2.20.0030.0299.00
5.2.10.0050.0278.92
5.2.00.0020.0318.78
5.1.60.0040.0298.06
5.1.50.0020.0278.05
5.1.40.0050.0318.04
5.1.30.0040.0268.39
5.1.20.0050.0288.41
5.1.10.0060.0258.13
5.1.00.0060.0268.13
5.0.50.0050.0196.61
5.0.40.0020.0256.47
5.0.30.0040.0316.29
5.0.20.0030.0206.26
5.0.10.0040.0186.23
5.0.00.0010.0336.23
4.4.90.0030.0144.78
4.4.80.0000.0184.76
4.4.70.0030.0154.76
4.4.60.0020.0254.75
4.4.50.0030.0154.77
4.4.40.0020.0334.71
4.4.30.0030.0184.76
4.4.20.0030.0224.84
4.4.10.0030.0214.85
4.4.00.0020.0274.75
4.3.110.0020.0174.67
4.3.100.0040.0164.66
4.3.90.0070.0104.64
4.3.80.0030.0244.58
4.3.70.0040.0134.63
4.3.60.0020.0154.63
4.3.50.0020.0164.63
4.3.40.0010.0264.54
4.3.30.0020.0153.29
4.3.20.0010.0223.26
4.3.10.0020.0153.22
4.3.00.0000.01715.29

preferences:
44.02 ms | 400 KiB | 5 Q