3v4l.org

run code in 500+ PHP versions simultaneously
<?php $body = <<<HTML <html> <body> <table> <tr><td>Hello</td></tr> </table> </body> </html> HTML; $output = $body; $start = strpos($output, "<table"); $end = strpos($output, "</table>"); $table = substr($output, $start, ($end - $start)); echo($table); ?> @@@@@@@

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.5.60.0120.00516.78
8.5.50.0020.00718.26
8.5.30.0110.00717.39
8.5.20.0110.00620.02
8.5.10.0070.01020.00
8.5.00.0120.00920.02
8.4.180.0170.00619.68
8.4.170.0100.01120.64
8.4.160.0110.01021.50
8.4.150.0080.00416.85
8.4.140.0130.00717.27
8.4.130.0050.00317.66
8.4.120.0140.00622.34
8.4.110.0150.00524.15
8.4.100.0120.00917.64
8.4.90.0100.01020.57
8.4.80.0110.00818.98
8.4.70.0130.00620.66
8.4.60.0120.00820.51
8.4.50.0080.01220.66
8.4.40.0100.01019.55
8.4.30.0060.01017.45
8.4.20.0140.00717.60
8.4.10.0060.00317.38
8.3.300.0110.00820.75
8.3.290.0130.00620.72
8.3.280.0100.01018.35
8.3.270.0090.01116.42
8.3.260.0100.00916.66
8.3.250.0120.00718.82
8.3.240.0050.00416.23
8.3.230.0020.00716.34
8.3.220.0030.00418.81
8.3.210.0120.00616.70
8.3.200.0040.00416.23
8.3.190.0040.00616.93
8.3.180.0050.00218.80
8.3.170.0130.00616.92
8.3.160.0040.00418.26
8.3.150.0100.01016.35
8.3.140.0060.00318.37
8.3.130.0040.00418.11
8.3.120.0090.00020.48
8.3.110.0030.00620.94
8.3.100.0060.00618.47
8.3.90.0120.00326.77
8.3.80.0060.00317.97
8.3.70.0090.00916.25
8.3.60.0100.01016.46
8.3.50.0190.01421.02
8.3.40.0030.01218.57
8.3.30.0070.00718.85
8.3.20.0030.00518.83
8.3.10.0040.00420.02
8.3.00.0060.00319.68
8.2.300.0110.00921.94
8.2.290.0140.00616.30
8.2.280.0070.00120.15
8.2.270.0070.01418.13
8.2.260.0070.00717.14
8.2.250.0060.00316.66
8.2.240.0090.00018.96
8.2.230.0040.00722.58
8.2.220.0030.00624.06
8.2.210.0000.00926.77
8.2.200.0090.00018.41
8.2.190.0090.01216.63
8.2.180.0150.00616.50
8.2.170.0100.00322.96
8.2.160.0070.01020.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00021.05
8.2.120.0040.00426.35
8.2.110.0070.00319.31
8.2.100.0110.00017.71
8.2.90.0080.00017.97
8.2.80.0060.00318.22
8.2.70.0000.00817.50
8.2.60.0030.00517.63
8.2.50.0050.00318.07
8.2.40.0000.00718.03
8.2.30.0040.00417.96
8.2.20.0000.00717.66
8.2.10.0030.00518.05
8.2.00.0070.00018.16
8.1.340.0120.00817.69
8.1.330.0140.00415.92
8.1.320.0110.00717.92
8.1.310.0140.00318.52
8.1.300.0080.00820.34
8.1.290.0060.00318.88
8.1.280.0140.00725.92
8.1.270.0040.00423.96
8.1.260.0070.00028.09
8.1.250.0140.00028.09
8.1.240.0050.00519.38
8.1.230.0040.00820.84
8.1.220.0030.00517.79
8.1.210.0040.00418.98
8.1.200.0000.00817.23
8.1.190.0030.00617.23
8.1.180.0060.00318.10
8.1.170.0050.00318.56
8.1.160.0030.00618.82
8.1.150.0000.01018.46
8.1.140.0020.00519.42
8.1.130.0030.00317.64
8.1.120.0000.00717.41
8.1.110.0040.00417.37
8.1.100.0000.00717.27
8.1.90.0000.00817.36
8.1.80.0030.00317.30
8.1.70.0040.00417.23
8.1.60.0000.00717.47
8.1.50.0030.00617.49
8.1.40.0000.00817.51
8.1.30.0000.00817.47
8.1.20.0050.00217.52
8.1.10.0080.00017.33
8.1.00.0000.00717.33
8.0.300.0060.00319.87
8.0.290.0100.00016.87
8.0.280.0000.00818.35
8.0.270.0030.00317.24
8.0.260.0030.00317.25
8.0.250.0070.00016.99
8.0.240.0000.00816.91
8.0.230.0030.00316.97
8.0.220.0040.00416.78
8.0.210.0030.00316.91
8.0.200.0040.00416.84
8.0.190.0060.00316.95
8.0.180.0000.00716.80
8.0.170.0040.00416.87
8.0.160.0000.00716.92
8.0.150.0030.00316.73
8.0.140.0030.00316.91
8.0.130.0000.00613.33
8.0.120.0040.00416.87
8.0.110.0070.00016.78
8.0.100.0040.00416.83
8.0.90.0030.00516.89
8.0.80.0000.01616.82
8.0.70.0000.00716.84
8.0.60.0040.00416.83
8.0.50.0020.00516.92
8.0.30.0150.00716.96
8.0.20.0100.00817.40
8.0.10.0000.00717.02
8.0.00.0110.00516.71
7.4.330.0020.00215.08
7.4.320.0060.00016.48
7.4.300.0030.00316.42
7.4.290.0030.00316.54
7.4.280.0040.00416.50
7.4.270.0000.00616.46
7.4.260.0060.00316.44
7.4.250.0000.00716.49
7.4.240.0030.00316.58
7.4.230.0000.00716.44
7.4.220.0120.00616.64
7.4.210.0030.01116.50
7.4.200.0040.00416.65
7.4.160.0060.01016.59
7.4.150.0110.00717.40
7.4.140.0080.01117.86
7.4.130.0080.01016.54
7.4.120.0070.01316.49
7.4.110.0140.00316.29
7.4.100.0120.00916.48
7.4.90.0170.00016.35
7.4.80.0100.00719.39
7.4.70.0120.00916.51
7.4.60.0090.01216.34
7.4.50.0110.00716.37
7.4.40.0090.00916.63
7.4.30.0130.01216.29
7.4.10.0080.01014.90
7.4.00.0070.00914.99
7.3.330.0060.00013.31
7.3.320.0030.00313.14
7.3.310.0070.00016.38
7.3.300.0000.00716.35
7.3.290.0070.00016.33
7.3.280.0110.00816.32
7.3.270.0060.01217.40
7.3.260.0100.00716.49
7.3.250.0110.00716.37
7.3.240.0120.00816.31
7.3.230.0060.01116.52
7.3.210.0100.00716.36
7.3.200.0200.02219.39
7.3.190.0050.01516.31
7.3.180.0030.01616.64
7.3.170.0090.00916.32
7.3.160.0120.00416.36
7.3.130.0080.00814.87
7.3.120.0050.00914.84
7.3.110.0100.00814.95
7.3.100.0050.00914.72
7.3.90.0100.00714.86
7.3.80.0100.00514.88
7.3.70.0040.00914.74
7.3.60.0100.00514.65
7.3.50.0080.00914.83
7.3.40.0060.00714.69
7.3.30.0050.00614.83
7.3.20.0080.00716.74
7.3.10.0060.01016.68
7.3.00.0080.00516.57
7.2.330.0130.01016.35
7.2.320.0070.01016.52
7.2.310.0100.01016.56
7.2.300.0070.01516.47
7.2.290.0130.00316.77
7.2.260.0060.01214.82
7.2.250.0050.01214.84
7.2.240.0060.00814.93
7.2.230.0050.01114.88
7.2.220.0080.00914.95
7.2.210.0060.00714.94
7.2.200.0070.00514.85
7.2.190.0100.00715.11
7.2.180.0030.01014.79
7.2.170.0050.00915.00
7.2.160.0050.00914.93
7.2.150.0030.00716.80
7.2.140.0060.00816.87
7.2.130.0030.01116.89
7.2.120.0030.00916.64
7.2.110.0090.00516.65
7.2.100.0070.00816.55
7.2.90.0080.00816.82
7.2.80.0040.00916.73
7.2.70.0070.00716.74
7.2.60.0050.00816.75
7.2.50.0050.01116.64
7.2.40.0100.00716.87
7.2.30.0080.00816.77
7.2.20.0070.01016.82
7.2.10.0040.01116.78
7.2.00.0090.00717.48
7.1.330.0020.01315.87
7.1.320.0050.00715.73
7.1.310.0060.00515.85
7.1.300.0110.00515.74
7.1.290.0050.00615.90
7.1.280.0070.00715.75
7.1.270.0080.00815.70
7.1.260.0030.01015.85
7.1.250.0060.00615.76
7.1.240.0050.00515.68
7.1.230.0070.00715.85
7.1.220.0040.00715.91
7.1.210.0060.00615.86
7.1.200.0030.01015.74
7.1.190.0030.00815.72
7.1.180.0060.01115.62
7.1.170.0020.01015.87
7.1.160.0050.00715.88
7.1.150.0040.00815.70
7.1.140.0080.00515.85
7.1.130.0050.01015.84
7.1.120.0050.01015.86
7.1.110.0010.01015.87
7.1.100.0090.00416.58
7.1.90.0050.00815.65
7.1.80.0040.00515.68
7.1.70.0050.00716.28
7.1.60.0060.01316.98
7.1.50.0050.00915.63
7.1.40.0150.00015.84
7.1.30.0070.00815.80
7.1.20.0090.00315.84
7.1.10.0040.01015.86
7.1.00.0100.02618.01
7.0.330.0080.00615.37
7.0.320.0070.00515.40
7.0.310.0070.00715.46
7.0.300.0050.00915.41
7.0.290.0030.00915.39
7.0.280.0050.01115.38
7.0.270.0060.00715.36
7.0.260.0060.00515.34
7.0.250.0060.00715.46
7.0.240.0040.01015.45
7.0.230.0050.00715.59
7.0.220.0080.00615.67
7.0.210.0020.00915.20
7.0.200.0050.00615.86
7.0.190.0030.01115.38
7.0.180.0090.00315.50
7.0.170.0060.00615.45
7.0.160.0050.00915.48
7.0.150.0040.00815.29
7.0.140.0060.00815.44
7.0.130.0030.01015.50
7.0.120.0090.00415.47
7.0.110.0080.00715.46
7.0.100.0090.02916.99
7.0.90.0060.02016.90
7.0.80.0060.01916.90
7.0.70.0060.01716.79
7.0.60.0050.02016.88
7.0.50.0110.03017.13
7.0.40.0040.02815.70
7.0.30.0060.03115.68
7.0.20.0060.03015.67
7.0.10.0120.02615.59
7.0.00.0070.02915.62
5.6.400.0070.00914.00
5.6.390.0030.00914.18
5.6.380.0050.00814.44
5.6.370.0050.00814.26
5.6.360.0060.00814.22
5.6.350.0090.00514.48
5.6.340.0000.01314.27
5.6.330.0070.00914.46
5.6.320.0040.01014.37
5.6.310.0050.01014.40
5.6.300.0020.01314.34
5.6.290.0070.00614.17
5.6.280.0030.02916.48
5.6.270.0070.00814.46
5.6.260.0120.00214.35
5.6.250.0070.03016.48
5.6.240.0070.02816.41
5.6.230.0060.02416.40
5.6.220.0100.02916.36
5.6.210.0050.03116.43
5.6.200.0070.02916.66
5.6.190.0070.02016.46
5.6.180.0070.01916.52
5.6.170.0070.03316.58
5.6.160.0030.03316.44
5.6.150.0060.02916.51
5.6.140.0050.03316.53
5.6.130.0070.03316.42
5.6.120.0040.02216.60
5.6.110.0090.02816.49
5.6.100.0080.02716.56
5.6.90.0060.02716.42
5.6.80.0080.02316.24
5.6.70.0030.02016.28
5.6.60.0050.02016.44
5.6.50.0040.01916.30
5.6.40.0050.02216.21
5.6.30.0070.02716.31
5.6.20.0100.02316.23
5.6.10.0050.02416.38
5.6.00.0050.03216.37
5.5.380.0070.02516.22
5.5.370.0070.03116.24
5.5.360.0040.02416.26
5.5.350.0100.02816.36
5.5.340.0090.02616.48
5.5.330.0120.02616.57
5.5.320.0060.02916.35
5.5.310.0030.03716.44
5.5.300.0100.03016.41
5.5.290.0080.02116.33
5.5.280.0080.01916.59
5.5.270.0020.03616.37
5.5.260.0060.03416.52
5.5.250.0110.01816.24
5.5.240.0060.01816.20
5.5.230.0070.03116.23
5.5.220.0070.02916.25
5.5.210.0070.03016.22
5.5.200.0080.02316.30
5.5.190.0060.02416.05
5.5.180.0110.02316.26
5.5.170.0050.00814.32
5.5.160.0060.01716.17
5.5.150.0040.03216.17
5.5.140.0060.03215.95
5.5.130.0050.02516.02
5.5.120.0060.03116.16
5.5.110.0060.03115.96
5.5.100.0080.03016.27
5.5.90.0080.03116.14
5.5.80.0090.02916.20
5.5.70.0070.02616.04
5.5.60.0070.02816.13
5.5.50.0100.01916.04
5.5.40.0050.02016.16
5.5.30.0060.02816.19
5.5.20.0070.01816.11
5.5.10.0110.02416.19
5.5.00.0080.03016.08

preferences:
96.4 ms | 2107 KiB | 5 Q