3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = "some html More <Head> Something <title> Example.com</title> <title> Example2.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.0060.00916.50
8.3.50.0110.00721.03
8.3.40.0070.01018.76
8.3.30.0040.01118.61
8.3.20.0040.00421.94
8.3.10.0040.00420.34
8.3.00.0040.00423.52
8.2.180.0140.00316.32
8.2.170.0060.00922.96
8.2.160.0150.00022.26
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0050.00519.39
8.2.100.0080.00419.21
8.2.90.0090.00417.38
8.2.80.0030.00619.16
8.2.70.0080.00017.93
8.2.60.0030.00518.16
8.2.50.0050.00318.10
8.2.40.0040.00419.53
8.2.30.0030.00519.13
8.2.20.0000.00718.05
8.2.10.0040.00419.18
8.2.00.0030.00621.03
8.1.280.0070.00725.92
8.1.270.0050.00324.01
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0070.00319.19
8.1.230.0090.00319.04
8.1.220.0060.00317.78
8.1.210.0030.00618.77
8.1.200.0040.00417.35
8.1.190.0080.00017.11
8.1.180.0040.00418.10
8.1.170.0040.00418.67
8.1.160.0070.00018.82
8.1.150.0050.00218.70
8.1.140.0040.00423.86
8.1.130.0040.00419.98
8.1.120.0040.00317.37
8.1.110.0030.00717.36
8.1.100.0080.00017.38
8.1.90.0030.00317.40
8.1.80.0000.00817.39
8.1.70.0080.00317.39
8.1.60.0030.00517.45
8.1.50.0080.00417.42
8.1.40.0060.00317.43
8.1.30.0100.00017.59
8.1.20.0000.00717.59
8.1.10.0000.00817.52
8.1.00.0000.00717.30
8.0.300.0080.00019.67
8.0.290.0050.00316.75
8.0.280.0040.00418.44
8.0.270.0000.00717.26
8.0.260.0000.00620.07
8.0.250.0000.00716.93
8.0.240.0070.00316.92
8.0.230.0070.00016.93
8.0.220.0040.00416.70
8.0.210.0030.00316.76
8.0.200.0070.00016.93
8.0.190.0030.00516.75
8.0.180.0060.00316.84
8.0.170.0060.00616.83
8.0.160.0070.00016.79
8.0.150.0070.00016.76
8.0.140.0000.00716.82
8.0.130.0030.00313.20
8.0.120.0070.00016.77
8.0.110.0030.00516.88
8.0.100.0000.00716.70
8.0.90.0040.00416.61
8.0.80.0070.01216.80
8.0.70.0050.00216.65
8.0.60.0040.00416.87
8.0.50.0040.00416.80
8.0.30.0090.01016.97
8.0.20.0170.01017.09
8.0.10.0000.00716.97
8.0.00.0100.01116.81
7.4.330.0030.00215.55
7.4.320.0000.00616.58
7.4.300.0040.00416.45
7.4.290.0040.00416.33
7.4.280.0040.00416.42
7.4.270.0000.00616.58
7.4.260.0000.00716.45
7.4.250.0030.00316.55
7.4.240.0050.00216.51
7.4.230.0070.00016.46
7.4.220.0070.00016.33
7.4.210.0060.01016.51
7.4.200.0030.00316.56
7.4.130.0130.00316.52
7.4.120.0090.00916.48
7.4.110.0130.00316.35
7.4.100.0100.00616.52
7.4.90.0160.00516.36
7.4.80.0170.00019.39
7.4.70.0190.00616.34
7.4.60.0140.00416.37
7.4.50.0120.00616.14
7.4.40.0080.00816.63
7.4.00.0040.00714.54
7.3.330.0070.00012.98
7.3.320.0050.00013.01
7.3.310.0070.00016.38
7.3.300.0030.00316.15
7.3.290.0100.00316.24
7.3.280.0090.00616.21
7.3.260.0120.01116.42
7.3.230.0070.01016.20
7.3.210.0070.01316.22
7.3.200.0060.00916.28
7.3.190.0070.01016.45
7.3.180.0080.00816.43
7.3.170.0100.00916.29
7.3.160.0040.01216.49
7.3.70.0140.00314.80
7.3.60.0090.00314.88
7.3.50.0100.00314.93
7.3.40.0070.00714.77
7.3.30.0070.00714.87
7.3.20.0140.00214.94
7.3.10.0090.00914.50
7.3.00.0070.00614.86
7.2.330.0120.00616.18
7.2.320.0030.01416.65
7.2.310.0090.00616.32
7.2.300.0100.00716.29
7.2.290.0120.00416.63
7.2.200.0090.00914.87
7.2.190.0070.00414.96
7.2.180.0140.00014.85
7.2.170.0040.01014.83
7.2.160.0030.01114.89
7.2.150.0060.01014.76
7.2.140.0460.00314.71
7.2.130.0160.00914.98
7.2.120.0140.00714.86
7.2.110.0060.00915.03
7.2.100.0200.00714.69
7.2.90.0140.00014.89
7.2.80.0120.00614.74
7.2.70.0050.00914.78
7.2.60.0090.01114.82
7.2.50.0100.01014.78
7.2.40.0150.00314.84
7.2.30.0110.00414.79
7.2.20.0150.00314.84
7.2.10.0060.01214.95
7.2.00.0090.00914.82
7.1.300.0120.00013.79
7.1.290.0100.00713.88
7.1.280.0080.00813.76
7.1.270.0060.01013.69
7.1.260.0080.01213.95
7.1.250.0180.00713.69

preferences:
44.15 ms | 401 KiB | 5 Q