3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = "<html><body> vdfbsdbg \n </body> \n </html>"; $pos = strpos($html, '</body>'); if ($pos !== false) { $str = substr($html, 0, $pos); $final = $str . '==IMG==' . substr($html, $pos); print_r($final); }

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.0060.01516.63
8.3.50.0110.00522.04
8.3.40.0110.00418.67
8.3.30.0120.00319.10
8.3.20.0040.00420.16
8.3.10.0080.00023.70
8.3.00.0040.00419.16
8.2.180.0150.00616.63
8.2.170.0040.01122.96
8.2.160.0070.00720.37
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0070.00026.16
8.2.120.0080.00020.97
8.2.110.0030.01022.13
8.2.100.0080.00317.66
8.2.90.0000.00719.21
8.2.80.0040.00417.97
8.2.70.0040.00717.50
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0040.00419.76
8.2.30.0040.00418.17
8.2.20.0040.00417.62
8.2.10.0080.00018.13
8.2.00.0040.00417.64
8.1.280.0100.00725.92
8.1.270.0030.00623.96
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0080.00023.82
8.1.230.0070.00419.10
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0030.00518.57
8.1.160.0000.00721.91
8.1.150.0000.00818.60
8.1.140.0070.00017.40
8.1.130.0000.00717.86
8.1.120.0030.00317.48
8.1.110.0000.00717.42
8.1.100.0000.00817.45
8.1.90.0000.00717.42
8.1.80.0070.00017.45
8.1.70.0030.00317.38
8.1.60.0000.00817.51
8.1.50.0040.00417.50
8.1.40.0040.00417.47
8.1.30.0050.00317.59
8.1.20.0070.00017.59
8.1.10.0000.00717.50
8.1.00.0050.00317.51
8.0.300.0050.00218.77
8.0.290.0040.00416.75
8.0.280.0040.00418.35
8.0.270.0000.00717.26
8.0.260.0070.00017.32
8.0.250.0030.00316.85
8.0.240.0040.00416.99
8.0.230.0070.00016.96
8.0.220.0000.00716.90
8.0.210.0030.00316.91
8.0.200.0090.00016.92
8.0.190.0040.00416.94
8.0.180.0030.00316.88
8.0.170.0030.00616.92
8.0.160.0070.00016.82
8.0.150.0040.00416.90
8.0.140.0080.00016.89
8.0.130.0030.00313.32
8.0.120.0000.00816.71
8.0.110.0000.00716.76
8.0.100.0000.00716.89
8.0.90.0040.00416.95
8.0.80.0100.01016.77
8.0.70.0050.00216.74
8.0.60.0000.00716.93
8.0.50.0070.00016.89
8.0.30.0100.01317.07
8.0.20.0110.00817.40
8.0.10.0000.00716.91
8.0.00.0080.00916.76
7.4.330.0000.00515.00
7.4.320.0030.00316.52
7.4.300.0030.00316.59
7.4.290.0070.00016.55
7.4.280.0000.00916.59
7.4.270.0000.00716.40
7.4.260.0060.00416.48
7.4.250.0070.00016.45
7.4.240.0050.00216.56
7.4.230.0070.00016.67
7.4.220.0000.01716.54
7.4.210.0060.00916.56
7.4.200.0050.00316.70
7.4.190.0000.00716.77
7.4.160.0160.00016.64
7.4.150.0130.01017.40
7.4.140.0130.00717.86
7.4.130.0100.00716.43
7.4.120.0130.00316.49
7.4.110.0040.01816.43
7.4.100.0210.00316.47
7.4.90.0150.00316.41
7.4.80.0130.01119.39
7.4.70.0070.01416.55
7.4.60.0060.01316.45
7.4.50.0000.00516.34
7.4.40.0120.00816.41
7.4.30.0030.01316.23
7.4.00.0030.01214.82
7.3.330.0050.00013.08
7.3.320.0040.00413.31
7.3.310.0070.00016.14
7.3.300.0000.00716.31
7.3.290.0090.00616.24
7.3.280.0100.00816.37
7.3.270.0120.00617.40
7.3.260.0110.00616.52
7.3.250.0080.00816.56
7.3.240.0080.00816.56
7.3.230.0060.01016.39
7.3.210.0120.00616.38
7.3.200.0160.00019.39
7.3.190.0130.01016.23
7.3.180.0150.00316.63
7.3.170.0060.01016.52
7.3.160.0040.00416.50
7.3.120.0070.00715.09
7.3.10.0040.01116.75
7.3.00.0030.00916.63
7.2.330.0100.00716.68
7.2.320.0110.00716.29
7.2.310.0130.00316.63
7.2.300.0030.01416.50
7.2.290.0070.01316.52
7.2.130.0060.00916.75
7.2.120.0080.00516.69
7.2.110.0070.00616.70
7.2.100.0140.00616.81
7.2.90.0090.00616.75
7.2.80.0080.01016.95
7.2.70.0090.00716.80
7.2.60.0100.00817.00
7.2.50.0060.00616.62
7.2.40.0070.01116.80
7.2.30.0100.00416.86
7.2.20.0130.00516.53
7.2.10.0100.00716.77
7.2.00.0050.00717.67
7.1.250.0100.00615.58
7.1.100.0000.01218.08
7.1.70.0110.00417.19
7.1.60.0120.00919.70
7.1.50.0070.01717.06
7.1.00.0030.07722.48
7.0.200.0260.00714.90
7.0.140.0030.07021.96
7.0.60.0100.06720.01
7.0.50.0000.04317.86
7.0.40.0100.08320.24
7.0.30.0500.03720.19
7.0.20.0230.04020.20
7.0.10.0070.04020.09
7.0.00.0100.06020.14
5.6.280.0000.07721.10
5.6.210.0130.04720.47
5.6.200.0100.03718.11
5.6.190.0030.07320.64
5.6.180.4000.04720.46
5.6.170.0300.04720.62
5.6.160.0030.04020.35
5.6.150.0130.06318.09
5.6.140.0030.04718.12
5.6.130.0130.07718.21
5.6.120.0030.04721.00
5.6.110.0100.08321.13
5.6.100.0130.03321.00
5.6.90.0030.08721.12
5.6.80.0030.05020.36
5.5.350.0230.08320.43
5.5.340.0100.03317.89
5.5.330.0070.08320.43
5.5.320.0400.06320.27
5.5.310.0200.06720.17
5.5.300.0030.04317.96
5.5.290.0030.08317.94
5.5.280.0070.08320.76
5.5.270.0070.04020.86
5.5.260.0100.06720.67
5.5.250.0070.09020.64
5.5.240.4130.03720.28
5.4.450.0200.06319.62
5.4.440.1100.07719.54
5.4.430.0900.05319.46
5.4.420.1070.05319.46
5.4.410.0830.05019.47
5.4.400.0430.05019.14
5.4.390.1070.05318.98
5.4.380.0300.05318.69
5.4.370.0400.04718.71
5.4.360.0330.05018.48
5.4.350.0330.05718.57
5.4.340.0300.05318.68
5.4.320.0060.03912.46
5.4.310.0070.03712.46
5.4.300.0050.06212.45
5.4.290.0120.04512.45
5.4.280.0100.03812.35
5.4.270.0050.03912.35
5.4.260.0080.04012.35
5.4.250.0060.04312.35
5.4.240.0090.03412.35
5.4.230.0060.04212.34
5.4.220.0080.04312.34
5.4.210.0060.05712.34
5.4.200.0070.04312.34
5.4.190.0080.03912.34
5.4.180.0060.04012.34
5.4.170.0080.05312.35
5.4.160.0060.05312.35
5.4.150.0120.04612.34
5.4.140.0050.03912.03
5.4.130.0060.04112.01
5.4.120.0060.03611.97
5.4.110.0070.03911.97
5.4.100.0070.03811.96
5.4.90.0040.03811.96
5.4.80.0070.04511.96
5.4.70.0050.03711.96
5.4.60.0040.03611.96
5.4.50.0050.03611.96
5.4.40.0100.03211.95
5.4.30.0080.04211.95
5.4.20.0070.03511.95
5.4.10.0040.03711.95
5.4.00.0040.04211.43
5.3.290.0050.04012.80
5.3.280.0070.04012.71
5.3.270.0080.03812.72
5.3.260.0080.04412.71
5.3.250.0070.05012.71
5.3.240.0080.05312.72
5.3.230.0060.03912.71
5.3.220.0080.04512.68
5.3.210.0080.04212.68
5.3.200.0080.03812.68
5.3.190.0070.04112.68
5.3.180.0120.04512.68
5.3.170.0080.04512.67
5.3.160.0090.04612.67
5.3.150.0090.04012.67
5.3.140.0090.03712.66
5.3.130.0040.04612.66
5.3.120.0040.04212.66
5.3.110.0100.03612.66
5.3.100.0060.03912.12
5.3.90.0060.04412.08
5.3.80.0060.04212.07
5.3.70.0060.03912.08
5.3.60.0150.03512.06
5.3.50.0060.04412.00
5.3.40.0070.04112.00
5.3.30.0070.03611.94
5.3.20.0080.03511.73
5.3.10.0080.03611.69
5.3.00.0080.03611.68
5.2.170.0040.0339.18
5.2.160.0030.0329.18
5.2.150.0060.0309.18
5.2.140.0080.0329.18
5.2.130.0050.0309.14
5.2.120.0060.0289.13
5.2.110.0050.0329.14
5.2.100.0040.0359.14
5.2.90.0090.0429.14
5.2.80.0070.0349.13
5.2.70.0090.0319.14
5.2.60.0040.0399.09
5.2.50.0060.0469.05
5.2.40.0060.0489.03
5.2.30.0110.0439.01
5.2.20.0100.0419.00
5.2.10.0080.0398.92
5.2.00.0060.0508.77
5.1.60.0060.0358.06
5.1.50.0020.0378.05
5.1.40.0060.0328.04
5.1.30.0260.0588.39
5.1.20.0080.0338.41
5.1.10.0030.0318.13
5.1.00.0090.0348.13
5.0.50.0080.0266.61
5.0.40.0060.0216.47
5.0.30.0060.0426.29
5.0.20.0060.0256.26
5.0.10.0050.0276.23
5.0.00.0100.0456.23
4.4.90.0050.0254.78
4.4.80.0030.0244.75
4.4.70.0090.0404.75
4.4.60.0040.0224.75
4.4.50.0120.0294.77
4.4.40.0030.0374.71
4.4.30.0040.0214.76
4.4.20.0020.0244.84
4.4.10.0070.0284.85
4.4.00.0070.0294.76
4.3.110.0020.0254.67
4.3.100.0060.0184.66
4.3.90.0040.0214.63
4.3.80.0060.0304.59
4.3.70.0080.0164.63
4.3.60.0040.0184.63
4.3.50.0040.0204.63
4.3.40.0040.0274.54
4.3.30.0040.0173.28
4.3.20.0030.0203.26
4.3.10.0040.0223.22
4.3.00.0030.01716.99

preferences:
55.31 ms | 401 KiB | 5 Q