3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = "some html More <Head> Something <title> Example.com</title> </Head> Foo bar"; $pos = stripos($html, "<title>")+7; echo substr($html, $pos, stripos($html, "</title>")-$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.0160.00016.63
8.3.50.0050.01421.16
8.3.40.0150.00018.85
8.3.30.0040.01118.32
8.3.20.0000.00721.77
8.3.10.0050.00322.08
8.3.00.0050.00323.64
8.2.180.0060.01216.50
8.2.170.0110.00422.96
8.2.160.0080.00622.13
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0050.00326.16
8.2.110.0050.00519.45
8.2.100.0090.00317.78
8.2.90.0090.00017.75
8.2.80.0030.00519.16
8.2.70.0040.00417.80
8.2.60.0000.00918.02
8.2.50.0000.00818.10
8.2.40.0050.00321.15
8.2.30.0040.00419.23
8.2.20.0000.00818.17
8.2.10.0040.00419.29
8.2.00.0000.00819.12
8.1.280.0070.00725.92
8.1.270.0040.00422.02
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00723.78
8.1.230.0110.00020.99
8.1.220.0000.00917.76
8.1.210.0060.00318.77
8.1.200.0000.00817.35
8.1.190.0040.00417.00
8.1.180.0000.00818.10
8.1.170.0000.00818.40
8.1.160.0040.00418.82
8.1.150.0040.00418.73
8.1.140.0040.00423.92
8.1.130.0050.00520.07
8.1.120.0030.00317.37
8.1.110.0040.00417.40
8.1.100.0000.00717.43
8.1.90.0000.00717.27
8.1.80.0000.00717.27
8.1.70.0040.00417.31
8.1.60.0000.00917.40
8.1.50.0070.00317.46
8.1.40.0040.00417.47
8.1.30.0030.00517.42
8.1.20.0000.00817.59
8.1.10.0030.00517.46
8.1.00.0000.00817.35
8.0.300.0000.00719.92
8.0.290.0040.00416.75
8.0.280.0000.00818.44
8.0.270.0000.00717.23
8.0.260.0000.00619.98
8.0.250.0040.00416.84
8.0.240.0090.00016.78
8.0.230.0030.00316.88
8.0.220.0040.00416.75
8.0.210.0030.00316.82
8.0.200.0000.00716.77
8.0.190.0040.00416.92
8.0.180.0040.00416.80
8.0.170.0050.00516.89
8.0.160.0000.00716.76
8.0.150.0040.00416.71
8.0.140.0070.00016.79
8.0.130.0000.00613.13
8.0.120.0000.00816.64
8.0.110.0030.00516.69
8.0.100.0040.00416.89
8.0.90.0060.00316.89
8.0.80.0090.00616.73
8.0.70.0050.00216.66
8.0.60.0050.00316.66
8.0.50.0040.00416.84
8.0.30.0170.00916.95
8.0.20.0100.01017.17
8.0.10.0000.00716.95
8.0.00.0110.00716.68
7.4.330.0060.00015.55
7.4.320.0060.00016.43
7.4.300.0000.00716.46
7.4.290.0000.00816.37
7.4.280.0050.00316.44
7.4.270.0030.00316.45
7.4.260.0080.00016.51
7.4.250.0000.00716.45
7.4.240.0060.00116.45
7.4.230.0070.00016.25
7.4.220.0070.00016.55
7.4.210.0050.00916.55
7.4.200.0030.00316.63
7.4.130.0140.00416.57
7.4.120.0160.00616.46
7.4.110.0090.00916.51
7.4.100.0100.00616.46
7.4.90.0070.01016.41
7.4.80.0120.00619.39
7.4.70.0030.01216.37
7.4.60.0150.00316.38
7.4.50.0030.01216.08
7.4.40.0000.01516.46
7.4.10.0030.01716.48
7.4.00.0060.01115.44
7.3.330.0030.00313.17
7.3.320.0030.00313.06
7.3.310.0040.00416.24
7.3.300.0000.00716.12
7.3.290.0080.00916.19
7.3.280.0110.00716.21
7.3.260.0110.00616.40
7.3.230.0100.00716.18
7.3.210.0080.00816.43
7.3.200.0100.01016.40
7.3.190.0100.01016.37
7.3.180.0090.00616.37
7.3.170.0090.00816.37
7.3.160.0100.00716.31
7.3.130.0030.01616.09
7.3.120.0030.01315.43
7.3.110.0060.00815.44
7.3.100.0070.00715.60
7.3.90.0080.00615.52
7.3.80.0020.01215.59
7.3.70.0090.01115.32
7.3.60.0050.01115.16
7.3.50.0140.00415.22
7.3.40.0080.00815.22
7.3.30.0090.00615.21
7.3.20.0130.00416.55
7.3.10.0110.00416.47
7.3.00.0070.00516.41
7.2.330.0090.00916.63
7.2.320.0110.01116.48
7.2.310.0130.00316.48
7.2.300.0090.01316.29
7.2.290.0130.00316.28
7.2.260.0070.01316.38
7.2.250.0060.01315.80
7.2.240.0050.01315.83
7.2.230.0060.01015.54
7.2.220.0090.00515.60
7.2.210.0090.00715.63
7.2.200.0090.00615.20
7.2.190.0070.00915.45
7.2.180.0110.00715.28
7.2.170.0070.01015.40
7.2.160.0130.00515.42
7.2.150.0170.00816.54
7.2.140.0110.00616.68
7.2.130.0120.00816.33
7.2.120.0680.00916.59
7.2.110.0070.00816.65
7.2.100.0160.00516.65
7.2.90.0110.00916.57
7.2.80.0070.00916.59
7.2.70.0050.00916.43
7.2.60.0120.01016.45
7.2.50.0160.00716.39
7.2.40.0160.00616.65
7.2.30.0050.01016.42
7.2.20.0070.01216.45
7.2.10.0100.01216.39
7.2.00.0170.00216.61
7.1.330.0050.01016.53
7.1.320.0050.00916.50
7.1.310.0040.01216.52
7.1.300.0060.01115.61
7.1.290.0090.01215.65
7.1.280.0090.00815.53
7.1.270.0100.00515.51
7.1.260.0070.00915.60
7.1.250.0120.00315.57
7.1.240.0060.00617.27
7.1.230.0070.00717.31
7.1.220.0000.01117.11
7.1.210.0040.01117.28
7.1.200.0030.00617.30
7.1.190.0000.01517.16
7.1.180.0000.01517.38
7.1.170.0060.00617.45
7.1.160.0070.00317.19
7.1.150.0080.00417.13
7.1.140.0040.01117.12
7.1.130.0070.01017.25
7.1.120.0110.00417.21
7.1.110.0060.00617.27
7.1.100.0060.00617.22
7.1.90.0070.00717.40
7.1.80.0120.00017.25
7.1.70.0090.00317.20
7.1.60.0140.00417.29
7.1.50.0070.01017.27
7.1.40.0110.00417.29
7.1.30.0070.01017.13
7.1.20.0030.01017.19
7.1.10.0100.00317.28
7.1.00.0070.00717.41

preferences:
42.69 ms | 401 KiB | 5 Q