3v4l.org

run code in 300+ PHP versions simultaneously
<?php $htmlC = '<html><body>fdagedg sgsdfg </body> </html>'; $htmlsend = $htmlC; $pos = strpos($htmlsend, '</body>'); if ($pos !== false) { $strBeforeBody = substr($htmlsend, 0, $pos); $html = $strBeforeBody . '######sfdgzdfgdf########' . substr($htmlsend, $pos); $htmlC .= $html; print_r($htmlC); }

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.00916.61
8.3.50.0130.00622.13
8.3.40.0070.00718.97
8.3.30.0090.00619.07
8.3.20.0080.00020.34
8.3.10.0090.00023.47
8.3.00.0040.00420.76
8.2.180.0120.00616.63
8.2.170.0100.01022.96
8.2.160.0060.00918.54
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0080.00020.90
8.2.110.0100.00622.08
8.2.100.0040.00817.84
8.2.90.0000.00819.21
8.2.80.0040.00417.97
8.2.70.0070.00317.50
8.2.60.0090.00017.93
8.2.50.0050.00318.07
8.2.40.0040.00419.95
8.2.30.0000.00718.36
8.2.20.0050.00317.77
8.2.10.0070.00018.00
8.2.00.0040.00417.68
8.1.280.0100.00725.92
8.1.270.0120.00323.87
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.73
8.1.230.0040.00819.14
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0070.00317.22
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0000.00818.47
8.1.160.0030.00322.02
8.1.150.0030.00518.66
8.1.140.0060.00317.46
8.1.130.0030.00317.88
8.1.120.0000.00717.52
8.1.110.0000.00717.45
8.1.100.0050.00217.40
8.1.90.0050.00217.46
8.1.80.0040.00417.42
8.1.70.0040.00417.47
8.1.60.0060.00317.64
8.1.50.0000.00817.59
8.1.40.0040.00417.51
8.1.30.0030.00517.49
8.1.20.0000.00717.64
8.1.10.0000.00817.43
8.1.00.0040.00417.46
8.0.300.0060.00320.67
8.0.290.0040.00416.75
8.0.280.0030.00318.46
8.0.270.0000.00817.19
8.0.260.0030.00317.20
8.0.250.0000.00716.93
8.0.240.0000.00716.98
8.0.230.0040.00316.96
8.0.220.0030.00316.93
8.0.210.0000.00716.93
8.0.200.0070.00316.84
8.0.190.0030.00516.88
8.0.180.0000.00716.89
8.0.170.0040.00416.95
8.0.160.0000.00716.88
8.0.150.0050.00316.89
8.0.140.0050.00316.85
8.0.130.0060.00013.33
8.0.120.0050.00216.85
8.0.110.0040.00416.90
8.0.100.0050.00216.92
8.0.90.0050.00216.77
8.0.80.0120.00316.93
8.0.70.0040.00416.97
8.0.60.0040.00416.70
8.0.50.0000.00716.80
8.0.30.0110.00717.18
8.0.20.0080.01417.40
8.0.10.0030.00317.02
8.0.00.0150.00516.78
7.4.330.0000.00515.20
7.4.320.0000.00716.51
7.4.300.0030.00316.51
7.4.290.0000.00816.66
7.4.280.0000.00716.64
7.4.270.0000.00716.59
7.4.260.0000.00916.57
7.4.250.0030.00516.59
7.4.240.0050.00216.57
7.4.230.0030.00316.59
7.4.220.0070.01316.58
7.4.210.0070.00716.72
7.4.200.0070.00016.32
7.4.190.0070.00016.46
7.4.160.0150.00016.42
7.4.150.0140.00917.40
7.4.140.0120.00817.86
7.4.130.0120.00816.46
7.4.120.0110.00716.47
7.4.110.0110.00716.51
7.4.100.0160.00616.49
7.4.90.0150.00316.71
7.4.80.0060.01119.39
7.4.70.0060.01016.50
7.4.60.0100.00716.50
7.4.50.0040.00416.62
7.4.40.0070.01016.48
7.4.30.0060.01216.64
7.4.00.0100.00715.00
7.3.330.0020.00213.06
7.3.320.0040.00413.31
7.3.310.0030.00316.38
7.3.300.0030.00316.34
7.3.290.0050.01016.29
7.3.280.0110.00816.34
7.3.270.0110.00917.40
7.3.260.0040.01516.48
7.3.250.0110.01016.42
7.3.240.0090.00616.33
7.3.230.0060.01116.40
7.3.210.0030.01316.61
7.3.200.0070.01019.39
7.3.190.0120.00616.23
7.3.180.0060.00916.24
7.3.170.0140.00916.35
7.3.160.0100.00916.30
7.3.120.0030.00914.86
7.3.10.0090.00516.63
7.3.00.0070.00716.54
7.2.330.0070.01016.64
7.2.320.0070.01016.67
7.2.310.0150.00316.58
7.2.300.0090.01216.41
7.2.290.0070.01316.70
7.2.130.0050.00616.85
7.2.120.0090.00516.57
7.2.110.0080.00516.72
7.2.100.0010.01016.87
7.2.90.0050.00816.66
7.2.80.0070.00516.89
7.2.70.0060.01316.75
7.2.60.0110.00516.58
7.2.50.0050.01016.73
7.2.40.0040.01216.82
7.2.30.0090.00916.64
7.2.20.0080.00216.78
7.2.10.0100.00516.82
7.2.00.0040.00617.79
7.1.250.0030.00815.30
7.1.100.0000.01217.93
7.1.70.0040.00717.25
7.1.60.0030.01019.70
7.1.50.0100.00716.98
7.1.00.0100.07022.48
7.0.200.0190.00414.84
7.0.140.0000.07322.09
7.0.60.0070.08019.94
7.0.50.0070.06317.82
7.0.40.0100.03720.04
7.0.30.0230.08320.16
7.0.20.0200.07320.09
7.0.10.0070.07319.99
7.0.00.0070.09019.99
5.6.280.0030.07320.99
5.6.210.0070.07720.72
5.6.200.0170.07318.18
5.6.190.0000.04320.43
5.6.180.0300.05720.63
5.6.170.0270.07320.48
5.6.160.0070.08720.51
5.6.150.0070.07718.12
5.6.140.0130.07318.18
5.6.130.0030.06018.10
5.6.120.0130.08020.98
5.6.110.0130.07320.98
5.6.100.0000.09021.11
5.6.90.0100.07320.97
5.6.80.0100.07320.53
5.5.350.4300.04020.43
5.5.340.0100.05017.99
5.5.330.0070.05320.34
5.5.320.0400.07320.13
5.5.310.0370.06320.29
5.5.300.0030.08717.91
5.5.290.0130.07717.91
5.5.280.0100.06320.85
5.5.270.0100.08720.87
5.5.260.0130.07720.86
5.5.250.0100.06320.69
5.5.240.0100.05020.19
5.4.450.0530.05019.25
5.4.440.0330.04719.12
5.4.430.0300.04019.42
5.4.420.0230.03719.48
5.4.410.0230.05019.36
5.4.400.0200.04018.93
5.4.390.0230.05319.26
5.4.380.0470.05318.77
5.4.370.0370.05318.77
5.4.360.0270.05318.58
5.4.350.0230.06018.48
5.4.340.0330.05018.63
5.4.320.0050.03812.46
5.4.310.0070.04012.46
5.4.300.0070.03812.45
5.4.290.0100.03712.45
5.4.280.0040.03912.35
5.4.270.0070.03612.34
5.4.260.0020.04612.35
5.4.250.0080.03512.35
5.4.240.0050.03612.35
5.4.230.0060.03712.34
5.4.220.0050.03612.34
5.4.210.0070.03312.34
5.4.200.0060.03712.34
5.4.190.0040.04612.34
5.4.180.0050.03712.34
5.4.170.0080.04112.35
5.4.160.0060.05012.34
5.4.150.0090.03512.34
5.4.140.0060.03812.02
5.4.130.0040.03912.01
5.4.120.0060.03611.97
5.4.110.0060.03511.97
5.4.100.0040.03711.96
5.4.90.0080.03611.96
5.4.80.0060.04811.96
5.4.70.0050.04011.96
5.4.60.0060.03911.96
5.4.50.0100.03411.96
5.4.40.0080.03511.95
5.4.30.0080.03311.95
5.4.20.0080.03811.95
5.4.10.0050.04011.95
5.4.00.0060.05111.43
5.3.290.0070.03812.80
5.3.280.0090.04112.71
5.3.270.0080.03812.72
5.3.260.0050.04212.72
5.3.250.0070.03712.71
5.3.240.0050.04312.72
5.3.230.0090.04212.71
5.3.220.0090.04012.68
5.3.210.0070.04412.68
5.3.200.0090.03712.68
5.3.190.0110.04912.68
5.3.180.0060.05412.67
5.3.170.0100.05112.67
5.3.160.0080.04412.68
5.3.150.0100.05412.67
5.3.140.0090.07512.66
5.3.130.0100.05212.66
5.3.120.0070.04812.65
5.3.110.0110.07312.66
5.3.100.0090.05012.12
5.3.90.0090.05412.08
5.3.80.0110.04712.08
5.3.70.0120.04612.07
5.3.60.0090.04812.06
5.3.50.0080.04212.00
5.3.40.0080.04012.00
5.3.30.0060.04911.94
5.3.20.0030.03811.72
5.3.10.0060.03611.69
5.3.00.0030.04011.68
5.2.170.0050.0309.18
5.2.160.0060.0279.18
5.2.150.0060.0289.18
5.2.140.0050.0369.17
5.2.130.0060.0289.14
5.2.120.0040.0299.13
5.2.110.0050.0299.14
5.2.100.0060.0279.14
5.2.90.0060.0279.14
5.2.80.0030.0329.13
5.2.70.0050.0389.13
5.2.60.0050.0459.09
5.2.50.0050.0319.06
5.2.40.0080.0309.03
5.2.30.0080.0329.01
5.2.20.0070.0309.00
5.2.10.0030.0398.92
5.2.00.0060.0308.78
5.1.60.0050.0258.06
5.1.50.0060.0348.05
5.1.40.0050.0358.04
5.1.30.0040.0298.39
5.1.20.0060.0288.41
5.1.10.0090.0328.13
5.1.00.0060.0378.14
5.0.50.0060.0306.61
5.0.40.0070.0266.48
5.0.30.0060.0406.29
5.0.20.0050.0236.26
5.0.10.0040.0216.23
5.0.00.0030.0336.22
4.4.90.0050.0144.78
4.4.80.0020.0244.75
4.4.70.0030.0234.75
4.4.60.0070.0204.75
4.4.50.0040.0224.77
4.4.40.0030.0354.70
4.4.30.0020.0234.76
4.4.20.0050.0214.85
4.4.10.0000.0264.85
4.4.00.0040.0324.76
4.3.110.0020.0244.66
4.3.100.0040.0214.67
4.3.90.0040.0214.63
4.3.80.0020.0334.59
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0020.0164.63
4.3.40.0040.0224.54
4.3.30.0010.0173.28
4.3.20.0020.0153.25
4.3.10.0050.0123.21
4.3.00.0100.01716.99

preferences:
47.59 ms | 401 KiB | 5 Q