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.40.0120.00318.67
8.3.30.0100.00319.06
8.3.20.0060.00320.13
8.3.10.0000.00823.48
8.3.00.0080.00019.08
8.2.170.0110.00322.96
8.2.160.0080.00620.37
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.73
8.2.110.0150.00322.11
8.2.100.0040.00717.78
8.2.90.0040.00419.17
8.2.80.0050.00317.97
8.2.70.0090.00017.63
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0040.00419.82
8.2.30.0020.00518.30
8.2.20.0040.00417.63
8.2.10.0000.00718.04
8.2.00.0080.00017.63
8.1.270.0150.00423.77
8.1.260.0030.00526.35
8.1.250.0000.00728.09
8.1.240.0040.00423.75
8.1.230.0110.00019.21
8.1.220.0000.00717.79
8.1.210.0060.00318.77
8.1.200.0100.00017.23
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0000.00822.02
8.1.150.0060.00318.69
8.1.140.0070.00017.38
8.1.130.0040.00417.94
8.1.120.0030.00317.37
8.1.110.0020.00517.51
8.1.100.0040.00417.45
8.1.90.0070.00017.48
8.1.80.0000.00717.54
8.1.70.0070.00017.37
8.1.60.0050.00317.62
8.1.50.0000.00717.55
8.1.40.0070.00017.45
8.1.30.0040.00417.61
8.1.20.0070.00017.72
8.1.10.0000.00717.56
8.1.00.0080.00017.34
8.0.300.0000.00720.61
8.0.290.0000.00916.63
8.0.280.0000.00718.50
8.0.270.0000.00717.27
8.0.260.0000.00617.27
8.0.250.0040.00417.01
8.0.240.0030.00516.97
8.0.230.0040.00416.96
8.0.220.0000.00716.79
8.0.210.0050.00216.87
8.0.200.0050.00516.88
8.0.190.0040.00416.85
8.0.180.0080.00016.95
8.0.170.0000.00816.80
8.0.160.0030.00316.88
8.0.150.0050.00316.74
8.0.140.0030.00416.74
8.0.130.0000.00613.35
8.0.120.0080.00016.87
8.0.110.0040.00416.88
8.0.100.0040.00416.76
8.0.90.0070.00016.81
8.0.80.0060.01216.78
8.0.70.0000.00816.78
8.0.60.0030.00516.81
8.0.50.0070.00016.77
8.0.30.0150.00317.09
8.0.20.0190.00717.40
8.0.10.0040.00416.82
8.0.00.0140.00416.73
7.4.330.0020.00215.20
7.4.320.0060.00016.51
7.4.300.0000.00616.53
7.4.290.0040.00416.41
7.4.280.0000.00716.62
7.4.270.0030.00316.54
7.4.260.0070.00316.59
7.4.250.0020.00516.34
7.4.240.0000.00716.57
7.4.230.0040.00416.59
7.4.220.0070.01116.68
7.4.210.0000.01316.41
7.4.200.0030.00316.68
7.4.190.0030.00316.41
7.4.160.0070.01316.34
7.4.150.0120.00617.40
7.4.140.0140.00717.86
7.4.130.0090.00816.50
7.4.120.0070.01016.43
7.4.110.0170.00616.60
7.4.100.0110.00716.41
7.4.90.0130.00316.52
7.4.80.0080.01519.39
7.4.70.0130.00716.47
7.4.60.0140.00316.42
7.4.50.0040.00416.52
7.4.40.0130.00616.45
7.4.30.0100.01016.45
7.4.00.0050.01215.05
7.3.330.0050.00013.18
7.3.320.0040.00413.12
7.3.310.0000.00716.18
7.3.300.0000.00716.23
7.3.290.0030.01016.30
7.3.280.0110.00816.31
7.3.270.0060.01217.40
7.3.260.0120.00616.44
7.3.250.0110.00616.30
7.3.240.0130.00316.34
7.3.230.0100.00716.39
7.3.210.0140.00216.38
7.3.200.0120.00419.39
7.3.190.0120.00816.37
7.3.180.0160.00016.54
7.3.170.0100.00616.50
7.3.160.0060.01816.52
7.3.120.0080.00814.66
7.3.110.0000.01414.88
7.3.100.0080.00614.51
7.3.90.0040.00414.86
7.3.80.0000.01314.49
7.3.70.0030.00614.85
7.3.60.0130.00314.85
7.3.50.0100.00314.80
7.3.40.0070.00714.46
7.3.30.0070.00714.86
7.3.20.0110.00416.55
7.3.10.0090.00316.74
7.3.00.0040.00516.52
7.2.330.0080.01216.56
7.2.320.0170.00016.43
7.2.310.0150.00616.76
7.2.300.0130.00716.42
7.2.290.0140.00616.46
7.2.250.0070.00714.75
7.2.240.0130.00714.94
7.2.230.0090.00615.16
7.2.220.0090.00315.15
7.2.210.0000.01215.14
7.2.200.0000.01415.10
7.2.190.0040.01115.07
7.2.180.0090.00314.75
7.2.170.0040.01215.02
7.2.130.0070.00716.68
7.2.120.0000.01816.96
7.2.110.0030.01016.87
7.2.100.0060.00916.96
7.2.90.0040.01217.03
7.2.80.0040.01016.67
7.2.70.0100.00716.98
7.2.60.0030.01016.80
7.2.50.0070.00716.76
7.2.40.0090.00616.91
7.2.30.0140.00016.88
7.2.20.0100.00317.02
7.2.10.0090.00617.05
7.2.00.0050.00818.13
7.1.330.0100.00615.76
7.1.320.0000.00916.05
7.1.310.0110.00315.97
7.1.300.0040.01115.73
7.1.290.0070.00715.50
7.1.280.0040.00415.51
7.1.270.0080.00515.87
7.1.260.0060.00615.80
7.1.250.0090.00615.86
7.1.200.0030.00315.52
7.1.100.0070.00318.07
7.1.70.0070.00017.00
7.1.60.0030.00917.19
7.1.50.0040.00716.85
7.1.40.0060.01616.71
7.1.30.0030.01316.59
7.1.20.0100.01016.80
7.1.10.0110.01116.76
7.1.00.0000.00816.66
7.0.200.0040.00416.84
7.0.190.0020.00516.48
7.0.180.0040.00416.35
7.0.170.0080.00316.35
7.0.160.0000.00816.35
7.0.150.0050.00316.35
7.0.140.0000.00816.48
7.0.130.0040.00416.57
7.0.120.0000.01016.55
7.0.110.0000.00916.35
7.0.100.0050.00316.43
7.0.90.0120.00016.35
7.0.80.0000.00816.35
7.0.70.0030.00516.39
7.0.60.0040.00416.35
7.0.50.0030.00516.47
7.0.40.0000.00816.35
7.0.30.0030.00516.35
7.0.20.0000.00716.35
7.0.10.0030.01016.35
7.0.00.0030.00616.35
5.6.300.0030.04220.87
5.6.290.0000.04920.79
5.6.280.0030.05520.82
5.6.270.0000.04620.89
5.6.260.0000.04720.81
5.6.250.0000.05021.03
5.6.240.0070.04721.06
5.6.230.0070.04120.95
5.6.220.0030.05020.96
5.6.210.0070.05321.04
5.6.200.0030.08120.69
5.6.190.0030.04420.98
5.6.180.0070.04120.90
5.6.170.0070.03720.77
5.6.160.0160.03120.99
5.6.150.0070.04420.96
5.6.140.0070.07521.02
5.6.130.0030.04020.83
5.6.120.0030.04320.86
5.6.110.0030.04420.98
5.6.100.0030.04420.92
5.6.90.0070.06720.92
5.6.80.0040.04220.21
5.6.70.0100.05520.36
5.6.60.0100.06720.30
5.6.50.0060.05120.21
5.6.40.0030.03820.21
5.6.30.0070.03720.19
5.6.20.0060.03620.18
5.6.10.0030.06520.18
5.6.00.0030.05220.32
5.5.380.0170.04417.54
5.5.370.0030.03817.57
5.5.360.0000.05717.55
5.5.350.0030.06317.50
5.5.340.0000.06017.97
5.5.330.0030.05017.75
5.5.320.0330.02918.11
5.5.310.0130.02917.70
5.5.300.0060.05117.74
5.5.290.0030.06818.00
5.5.280.0000.04418.06
5.5.270.0030.04017.93
5.5.260.0000.04618.11
5.5.250.0000.05517.82
5.5.240.0000.04017.37
5.5.230.0060.03917.32
5.5.220.0070.04017.41
5.5.210.0000.04317.24
5.5.200.0000.04617.32
5.5.190.0030.04617.21
5.5.180.0100.03217.35
5.5.160.0030.03917.05
5.5.150.0070.07617.34
5.5.140.0030.04517.35
5.5.130.0100.03917.37
5.5.120.0070.07017.38
5.5.110.0030.04117.37
5.5.100.0030.05717.29
5.5.90.0000.03917.36
5.5.80.0070.03317.36
5.5.70.0100.04517.26
5.5.60.0030.03817.18
5.5.50.0070.03717.26
5.5.40.0000.04217.30
5.5.30.0030.04017.00
5.5.20.0030.03717.18
5.5.10.0000.04417.30
5.5.00.0030.03817.25
5.4.450.0030.04119.39
5.4.440.0030.05519.35
5.4.430.0060.03519.49
5.4.420.0100.03419.39
5.4.410.0290.03619.11
5.4.400.0070.03318.98
5.4.390.0160.02618.83
5.4.380.0070.03419.14
5.4.370.0000.04219.15
5.4.360.0000.04119.07
5.4.350.0030.04019.00
5.4.340.0030.04918.92
5.4.320.0030.03719.02
5.4.310.0130.07019.15
5.4.300.0060.04218.98
5.4.290.0100.03218.82
5.4.280.0130.03319.15
5.4.270.0070.04619.05
5.4.260.0070.03218.98
5.4.250.0000.04018.91
5.4.240.0070.07519.05
5.4.230.0160.04119.09
5.4.220.0000.04619.06
5.4.210.0030.03719.00
5.4.200.0030.04319.16
5.4.190.0070.04019.03
5.4.180.0070.03919.14
5.4.170.0030.04118.97
5.4.160.0070.03519.13
5.4.150.0030.03619.05
5.4.140.0070.03216.50
5.4.130.0030.04116.35
5.4.120.0030.04216.60
5.4.110.0000.04516.51
5.4.100.0070.03316.58
5.4.90.0000.03916.73
5.4.80.0100.04916.66
5.4.70.0100.03816.56
5.4.60.0070.03016.59
5.4.50.0070.03316.66
5.4.40.0000.04216.39
5.4.30.0000.04516.55
5.4.20.0030.06616.54
5.4.10.0030.05016.63
5.4.00.0030.03516.35
5.3.290.0000.06616.35
5.3.280.0030.03816.35
5.3.270.0070.03616.35
5.3.260.0000.05016.35
5.3.250.0000.04316.35
5.3.240.0000.04116.35
5.3.230.0070.03616.35
5.3.220.0000.04016.35
5.3.210.0030.03916.35
5.3.200.0000.03816.35
5.3.190.0000.04416.35
5.3.180.0060.03816.35
5.3.170.0070.05216.35
5.3.160.0000.04016.35
5.3.150.0070.03616.35
5.3.140.0030.03816.35
5.3.130.0070.04216.35
5.3.120.0030.08316.35
5.3.110.0030.04216.35
5.3.100.0030.06816.35
5.3.90.0100.03216.35
5.3.80.0040.03916.35
5.3.70.0070.03016.35
5.3.60.0030.03516.35
5.3.50.0070.05116.35
5.3.40.0030.03816.35
5.3.30.0030.04216.35
5.3.20.0030.05716.35
5.3.10.0100.03516.35
5.3.00.0030.03316.35
5.2.170.0030.06616.35
5.2.160.0000.03216.35
5.2.150.0030.03216.35
5.2.140.0000.03016.35
5.2.130.0000.03316.35
5.2.120.0070.02316.35
5.2.110.0000.03216.35
5.2.100.0000.03116.35
5.2.90.0030.02616.35
5.2.80.0070.02516.35
5.2.70.0000.03316.35
5.2.60.0030.02916.35
5.2.50.0000.03516.35
5.2.40.0030.03316.35
5.2.30.0030.02716.35
5.2.20.0100.02916.35
5.2.10.0000.03016.35
5.2.00.0070.02316.35
5.1.60.0000.02716.35
5.1.50.0030.02316.35
5.1.40.0000.02916.35
5.1.30.0000.03816.35
5.1.20.0030.02816.35
5.1.10.0000.02816.35
5.1.00.0000.02816.35
5.0.50.0030.01916.35
5.0.40.0030.01716.35
5.0.30.0000.03616.35
5.0.20.0030.01716.35
5.0.10.0170.01716.35
5.0.00.0030.02916.35
4.4.90.0070.02716.35
4.4.80.0060.01216.35
4.4.70.0030.01516.35
4.4.60.0000.01616.35
4.4.50.0030.01616.35
4.4.40.0000.02716.35
4.4.30.0000.01616.35
4.4.20.0040.01516.35
4.4.10.0030.01416.35
4.4.00.0030.02616.35
4.3.110.0030.02016.35
4.3.100.0000.01716.35
4.3.90.0030.02016.35
4.3.80.0320.01616.35
4.3.70.0000.01716.35
4.3.60.0030.01316.35
4.3.50.0030.01516.35
4.3.40.0000.02616.35
4.3.30.0030.01516.35
4.3.20.0030.01416.35
4.3.10.0030.01316.35
4.3.00.0000.01716.35

preferences:
49.29 ms | 400 KiB | 5 Q