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.70.0140.00718.30
8.3.60.0100.00716.50
8.3.50.0130.00521.05
8.3.40.0180.00018.81
8.3.30.0100.00318.57
8.3.20.0070.00021.69
8.3.10.0040.00422.13
8.3.00.0100.00723.70
8.2.190.0150.00618.16
8.2.180.0090.00616.38
8.2.170.0090.00622.96
8.2.160.0070.00720.35
8.2.150.0050.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00619.23
8.2.110.0060.00322.07
8.2.100.0080.00417.78
8.2.90.0000.00818.03
8.2.80.0040.00419.02
8.2.70.0050.00317.63
8.2.60.0000.00817.63
8.2.50.0000.00817.63
8.2.40.0060.00318.16
8.2.30.0040.00418.04
8.2.20.0030.00618.11
8.2.10.0070.00321.03
8.2.00.0080.00019.33
8.1.280.0130.00325.92
8.1.270.0040.00422.06
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0060.00322.18
8.1.230.0040.00820.96
8.1.220.0030.00517.74
8.1.210.0000.00918.77
8.1.200.0050.00317.22
8.1.190.0000.00917.23
8.1.180.0080.00018.10
8.1.170.0030.00518.77
8.1.160.0070.00018.83
8.1.150.0000.00718.82
8.1.140.0050.00322.04
8.1.130.0040.00420.20
8.1.120.0030.00317.41
8.1.110.0000.01017.45
8.1.100.0000.00817.29
8.1.90.0040.00417.41
8.1.80.0030.00617.40
8.1.70.0040.00517.38
8.1.60.0040.00417.52
8.1.50.0000.00817.36
8.1.40.0030.00617.44
8.1.30.0000.00817.56
8.1.20.0050.00717.54
8.1.10.0120.00317.51
8.1.00.0120.00417.42
8.0.300.0030.00520.16
8.0.290.0070.00016.75
8.0.280.0070.00018.34
8.0.270.0040.00417.25
8.0.260.0030.00320.07
8.0.250.0030.00316.85
8.0.240.0000.00616.96
8.0.230.0030.00316.79
8.0.220.0030.00316.79
8.0.210.0070.00016.82
8.0.200.0070.00016.82
8.0.190.0030.00316.88
8.0.180.0030.00316.82
8.0.170.0050.00316.90
8.0.160.0000.00716.81
8.0.150.0030.00516.62
8.0.140.0040.00516.74
8.0.130.0040.00515.00
8.0.120.0040.00516.77
8.0.110.0070.00416.76
8.0.100.0020.00816.69
8.0.90.0060.00616.74
8.0.80.0100.00416.78
8.0.70.0090.00316.74
8.0.60.0090.00416.74
8.0.50.0050.00716.79
8.0.30.0130.00916.75
8.0.20.0120.00816.88
8.0.10.0080.01016.92
8.0.00.0110.00716.85
7.4.330.0060.00015.55
7.4.320.0000.00616.39
7.4.300.0000.00716.45
7.4.290.0030.00316.46
7.4.280.0050.00316.45
7.4.270.0090.00516.46
7.4.260.0090.00616.44
7.4.250.0070.00816.43
7.4.240.0140.00016.44
7.4.230.0090.00516.34
7.4.220.0070.00716.44
7.4.210.0060.01016.48
7.4.200.0090.00516.32
7.4.190.0170.00316.46
7.4.180.0100.00716.50
7.4.160.0090.00916.55
7.4.150.0090.00816.49
7.4.140.0070.01016.35
7.4.130.0070.01116.29
7.4.120.0090.01016.42
7.4.110.0080.01016.30
7.4.100.0090.00816.46
7.4.90.0060.00916.39
7.4.80.0070.00817.20
7.4.70.0090.00616.44
7.4.60.0080.00816.31
7.4.50.0080.00716.29
7.4.40.0100.01116.40
7.4.30.0080.00716.45
7.4.20.0090.00916.36
7.4.10.0100.00716.38
7.4.00.0060.01016.14
7.3.330.0070.00514.62
7.3.320.0050.00714.54
7.3.310.0090.00316.33
7.3.300.0080.00416.18
7.3.290.0090.00716.23
7.3.280.0080.00816.21
7.3.270.0120.00616.21
7.3.260.0120.00716.30
7.3.250.0120.00816.21
7.3.240.0120.00616.19
7.3.230.0110.00716.23
7.3.220.0110.00716.22
7.3.210.0100.00816.24
7.3.200.0090.00916.23
7.3.190.0120.00516.18
7.3.180.0090.00616.29
7.3.170.0140.00916.23
7.3.160.0090.00816.19
7.3.150.0070.01116.16
7.3.140.0090.00716.23
7.3.130.0100.00816.18
7.3.120.0150.00416.13
7.3.110.0110.00816.13
7.3.100.0100.00816.08
7.3.90.0110.00616.41
7.3.80.0120.00616.11
7.3.70.0140.00815.89
7.3.60.0060.01215.92
7.3.50.0100.00615.94
7.3.40.0120.00315.88
7.3.30.0130.00415.96
7.3.20.0130.01015.92
7.3.10.0180.00515.87
7.3.00.0190.00715.92
7.2.340.0170.00716.24
7.2.330.0190.00716.20
7.2.320.0170.00616.28
7.2.310.0140.00816.27
7.2.300.0130.01016.28
7.2.290.0180.00616.31
7.2.280.0190.00616.18
7.2.270.0220.00416.26
7.2.260.0220.00716.27
7.2.250.0180.00916.32
7.2.240.0170.00916.30
7.2.230.0180.01116.21
7.2.220.0130.01416.27
7.2.210.0180.00816.29
7.2.200.0120.01415.95
7.2.190.0150.00915.97
7.2.180.0160.00615.82
7.2.170.0170.00615.92
7.2.160.0120.01015.94
7.2.150.0240.00715.99
7.2.140.0230.00915.97
7.2.130.0230.00816.12
7.2.120.0160.01016.12
7.2.110.0280.00916.04
7.2.100.0200.01116.16
7.2.90.0190.01015.97
7.2.80.0190.01116.06
7.2.70.0200.00716.04
7.2.60.0250.00816.01
7.2.50.0210.01116.04
7.2.40.0330.00816.05
7.2.30.0240.00716.06
7.2.20.0230.00815.97
7.2.10.0310.00816.04
7.2.00.0250.00516.10
7.1.330.0240.00715.44
7.1.320.0230.00815.45
7.1.310.0150.01115.41
7.1.300.0210.00615.00
7.1.290.0220.00515.10
7.1.280.0220.00715.09
7.1.270.0270.00815.05
7.1.260.0260.00514.97
7.1.250.0210.01014.98
7.1.240.0370.00815.37
7.1.230.0180.00515.38
7.1.220.0200.00915.49
7.1.210.0130.01115.48
7.1.200.0130.01315.42
7.1.190.0190.00615.42
7.1.180.0200.00715.40
7.1.170.0150.00715.50
7.1.160.0220.00815.42
7.1.150.0200.00515.39
7.1.140.0130.01115.39
7.1.130.0230.00715.37
7.1.120.0210.00715.38
7.1.110.0200.01015.34
7.1.100.0170.00715.43
7.1.90.0160.00915.38
7.1.80.0190.00615.45
7.1.70.0200.00515.27
7.1.60.0230.00815.49
7.1.50.0170.00915.41
7.1.40.0190.00715.36
7.1.30.0190.00515.54
7.1.20.0190.00715.37
7.1.10.0180.00915.43
7.1.00.0170.00715.37

preferences:
61.75 ms | 401 KiB | 5 Q