3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = []; $a[0] = "<table style='color:; text-align: left;'> <tr> <td>Processor"; $a[1] = "</td> <td> Intel Core 2 Duo - E8400"; $a[2] = "</td> </tr> <tr> <td> Clockspeed"; $a[3] = "</td> <td> 3.0 GHz"; $a[4] = "</td> </tr> <tr> <td> Memory"; $a[5] = "</td> <td> 4 GB"; $a[6] = "</td> </tr> <tr> <td> Harddisk"; $a[7] = "</td> <td> 250 GB"; $a[8] = "</td> </tr> <tr> <td> Video-adapter"; $a[9] = "</td> <td> VGA, Display"; $a[10] = "</td> </tr> <tr> <td> Netwerkcard"; $a[11] = "</td><td> 1000 mbps LAN"; $a[12] = "</td> </tr> <tr> <td> Optical drive"; $a[13] = "</td><td> DVD-Rewriter"; $a[14] = "</td> </tr> <tr> <td> Operating system"; $a[15] = "</td><td> Windows7 or 10 Pro"; $a[16] = "</td> </tr> <tr> <td> Warranty"; $a[17] = "</td><td> 2 years</td></tr></table>"; foreach ($a as &$e) { $e = trim($e); } $joined = join($a); $stripped = strip_tags($joined,"<td>"); $replaced = str_replace(["<td>","</td>"],["*",""],$stripped); $arr = explode("*",$replaced); array_shift($arr); print_r($arr);

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.0040.01118.31
8.3.50.0130.00616.58
8.3.40.0070.00718.70
8.3.30.0090.00618.66
8.3.20.0040.00420.38
8.3.10.0050.00221.85
8.3.00.0000.00723.70
8.2.180.0110.00318.52
8.2.170.0070.00722.96
8.2.160.0060.00920.39
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0040.00420.57
8.2.120.0080.00026.35
8.2.110.0070.00420.57
8.2.100.0080.00417.78
8.2.90.0040.00419.21
8.2.80.0030.00617.97
8.2.70.0030.00617.63
8.2.60.0040.00417.93
8.2.50.0060.00318.22
8.2.40.0000.00720.59
8.2.30.0070.00019.23
8.2.20.0000.00818.20
8.2.10.0040.00418.16
8.2.00.0040.00418.11
8.1.280.0150.00025.92
8.1.270.0060.00322.19
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00023.92
8.1.230.0030.01020.38
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0040.00418.45
8.1.160.0000.00718.84
8.1.150.0040.00421.96
8.1.140.0050.00219.16
8.1.130.0030.00318.98
8.1.120.0030.00317.46
8.1.110.0020.00517.35
8.1.100.0070.00417.56
8.1.90.0000.00717.36
8.1.80.0040.00417.47
8.1.70.0000.00717.50
8.1.60.0070.00317.58
8.1.50.0030.00517.48
8.1.40.0000.00817.45
8.1.30.0000.00817.56
8.1.20.0000.00817.62
8.1.10.0000.00817.54
8.1.00.0040.00417.43
8.0.300.0050.00318.77
8.0.290.0050.00216.63
8.0.280.0070.00018.48
8.0.270.0030.00317.29
8.0.260.0070.00016.91
8.0.250.0030.00317.01
8.0.240.0000.00716.88
8.0.230.0030.00316.96
8.0.220.0030.00316.82
8.0.210.0030.00316.79
8.0.200.0000.00716.95
8.0.190.0030.00616.89
8.0.180.0040.00416.88
8.0.170.0000.00716.95
8.0.160.0040.00416.88
8.0.150.0040.00416.94
8.0.140.0050.00616.86
8.0.130.0000.00613.35
8.0.120.0030.00516.89
8.0.110.0040.00416.85
8.0.100.0040.00416.91
8.0.90.0040.00416.91
8.0.80.0060.00916.95
8.0.70.0000.00716.74
8.0.60.0050.00316.81
8.0.50.0040.00416.72
8.0.30.0070.01417.04
8.0.20.0110.00917.40
8.0.10.0000.00717.05
8.0.00.0160.00316.77
7.4.330.0050.00215.55
7.4.320.0000.00716.62
7.4.300.0060.00016.65
7.4.290.0030.00316.53
7.4.280.0030.00516.61
7.4.270.0000.00716.43
7.4.260.0000.00716.53
7.4.250.0000.00716.62
7.4.240.0030.00316.69
7.4.230.0000.00716.56
7.4.220.0120.00616.57
7.4.210.0070.01416.48
7.4.200.0030.00316.73
7.4.160.0100.00616.60
7.4.150.0120.00617.40
7.4.140.0140.00717.86
7.4.130.0110.01216.51
7.4.120.0110.01316.55
7.4.110.0130.00616.48
7.4.100.0070.01016.44
7.4.90.0030.01516.49
7.4.80.0030.01319.39
7.4.70.0110.01116.73
7.4.60.0090.00616.48
7.4.50.0120.00616.37
7.4.40.0150.00616.29
7.4.30.0160.00016.38
7.4.00.0040.01414.82
7.3.330.0050.00013.27
7.3.320.0000.00513.06
7.3.310.0030.00316.32
7.3.300.0040.00416.27
7.3.290.0120.00416.38
7.3.280.0070.01316.35
7.3.270.0170.02417.40
7.3.260.0060.01116.50
7.3.250.0090.01116.26
7.3.240.0080.01116.48
7.3.230.0140.00316.46
7.3.210.0000.01716.43
7.3.200.0100.00616.44
7.3.190.0060.01216.61
7.3.180.0120.00416.25
7.3.170.0090.00616.76
7.3.160.0040.01616.46
7.2.330.0070.01016.52
7.2.320.0160.00616.68
7.2.310.0090.01216.61
7.2.300.0040.01816.72
7.2.290.0000.01716.75
7.2.110.0150.00416.46
7.2.80.0000.00816.48
7.2.60.0100.00716.67
7.2.00.0120.01517.60
7.1.200.0040.00815.85
7.1.120.0060.01516.83
7.1.110.0110.01216.49
7.1.100.0090.01316.13
7.1.90.0070.01316.15
7.1.80.0090.01316.27
7.1.70.0060.01315.28
7.1.60.0270.00933.24
7.1.50.0210.01132.88
7.1.40.0180.01232.48
7.1.30.0200.01432.61
7.1.20.0210.01932.73
7.1.10.0120.00714.80
7.1.00.0050.01414.64
7.0.260.0140.00616.58
7.0.250.0130.00916.05
7.0.240.0100.01215.88
7.0.230.0360.01015.77
7.0.220.0100.00915.75
7.0.210.0150.00714.75
7.0.200.0080.00814.96
7.0.190.0070.01014.84
7.0.180.0080.01014.42
7.0.170.0120.01114.47
7.0.160.0070.01114.63
7.0.150.0100.00914.40
7.0.140.0570.00814.55
7.0.130.0100.00914.74
7.0.120.0070.01414.71
7.0.110.0090.01114.50
7.0.100.0110.01314.45
7.0.90.0120.00714.56
7.0.80.0140.00614.53
7.0.70.0110.00914.52
7.0.60.0080.00914.15
7.0.50.0090.01114.62
7.0.40.0110.00914.80
7.0.30.0060.01214.77
7.0.20.0160.00514.56
7.0.10.0140.01014.82
7.0.00.0360.01614.57

preferences:
72.48 ms | 401 KiB | 5 Q