3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 0 => [ "product_id" => 219, "product_description" => "<table style=\"color:; text-align: left;\"> <tr> <td> Processor: </td> <td> Intel Core 2 Duo - E8400 </td> </tr> <tr> <td> Clock speed: </td> <td> 3.0 GHz </td> </tr> <tr> <td> Memory: </td> <td> 4 GB </td> </tr> <tr> <td> Hard disk: </td> <td> 250 GB </td> </tr> <tr> <td> Video-adapter: </td> <td> VGA, Display </td> </tr> <tr> <td> Netwerk card: </td> <td> 1000 Mbps LAN </td> </tr> <tr> <td> Optical drive: </td> <td> DVD-Rewriter </td> </tr> <tr> <td> Operating system: </td> <td> Windows 7 or 10 Pro </td> </tr> <tr> <td> Warranty: </td> <td> 1 year </td> </tr> </table>"] ]; $arr = array_pop($a); $str = $arr["product_description"]; $stripped = strip_tags( $str, "<td>" ); $replaced = str_replace( "</td>", "", $stripped ); $arr = explode( "<td>", $replaced ); array_shift( $arr ); $arrKeyVal=[]; for( $i=0, $max = count( $arr ); $i < $max; $i+=2 ) { $key = trim( $arr[$i],"\r\t\n :" ); $arrKeyVal[strtolower( $key )] = trim( $arr[$i+1] ); } print_r( $arrKeyVal );

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.4.140.0140.00917.56
8.4.130.0110.01018.72
8.4.120.0100.00924.00
8.4.110.0140.00622.47
8.4.100.0140.00717.49
8.4.90.0110.00917.81
8.4.80.0070.00217.57
8.4.70.0050.00317.56
8.4.60.0110.00917.74
8.4.50.0030.00520.34
8.4.40.0060.01020.45
8.4.30.0000.00817.82
8.4.20.0100.00719.54
8.4.10.0060.00319.53
8.3.270.0100.00916.66
8.3.260.0120.00816.38
8.3.250.0130.00518.83
8.3.240.0100.00917.31
8.3.230.0100.01016.45
8.3.220.0110.00617.28
8.3.210.0110.00916.79
8.3.200.0060.00217.37
8.3.190.0110.00717.09
8.3.180.0060.00316.77
8.3.170.0030.01517.09
8.3.160.0070.01118.44
8.3.150.0100.01020.81
8.3.140.0000.00816.68
8.3.130.0060.00318.28
8.3.120.0060.00320.68
8.3.110.0090.00020.94
8.3.100.0060.00624.06
8.3.90.0000.00826.77
8.3.80.0040.00418.43
8.3.70.0060.01216.63
8.3.60.0090.00618.43
8.3.50.0090.00518.33
8.3.40.0060.01118.74
8.3.30.0000.01418.84
8.3.20.0030.00520.39
8.3.10.0050.00321.89
8.3.00.0040.00421.91
8.2.290.0120.00820.57
8.2.280.0120.00918.38
8.2.270.0180.00017.31
8.2.260.0030.00616.93
8.2.250.0160.00316.72
8.2.240.0060.00319.16
8.2.230.0040.00422.58
8.2.220.0040.00437.54
8.2.210.0050.00226.77
8.2.200.0030.00616.63
8.2.190.0100.00716.63
8.2.180.0190.00325.92
8.2.170.0140.00019.01
8.2.160.0140.00020.52
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00420.35
8.2.120.0050.00326.35
8.2.110.0060.00322.23
8.2.100.0030.00918.20
8.2.90.0030.00619.63
8.2.80.0000.00818.05
8.2.70.0030.00517.93
8.2.60.0000.00818.16
8.2.50.0080.00018.10
8.2.40.0070.00020.39
8.2.30.0040.00421.06
8.2.20.0000.00718.01
8.2.10.0070.00018.14
8.2.00.0070.00018.20
8.1.330.0100.00918.59
8.1.320.0120.00916.31
8.1.310.0170.00316.78
8.1.300.0100.00719.57
8.1.290.0030.00630.84
8.1.280.0160.00025.92
8.1.270.0000.00822.13
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0030.00720.44
8.1.230.0030.00720.90
8.1.220.0040.00417.91
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0000.00818.96
8.1.160.0000.00718.95
8.1.150.0000.00820.21
8.1.140.0040.00419.10
8.1.130.0000.00718.77
8.1.120.0040.00417.50
8.1.110.0050.00317.48
8.1.100.0000.00817.45
8.1.90.0030.00817.50
8.1.80.0070.00017.48
8.1.70.0000.00817.36
8.1.60.0000.00717.57
8.1.50.0000.00917.53
8.1.40.0000.00817.36
8.1.30.0040.00417.62
8.1.20.0040.00417.61
8.1.10.0000.00817.55
8.1.00.0000.00817.52
8.0.300.0000.00821.59
8.0.290.0000.00816.58
8.0.280.0030.00318.30
8.0.270.0030.00316.66
8.0.260.0030.00816.82
8.0.250.0030.00316.96
8.0.240.0030.00316.90
8.0.230.0070.00016.84
8.0.220.0030.00316.87
8.0.210.0000.00716.75
8.0.200.0040.00416.79
8.0.190.0050.00316.90
8.0.180.0000.00716.81
8.0.170.0000.00816.89
8.0.160.0040.00417.01
8.0.150.0000.00716.85
8.0.140.0050.00316.88
8.0.130.0060.00013.29
8.0.120.0020.00516.89
8.0.110.0080.00016.97
8.0.100.0050.00316.77
8.0.90.0000.00717.02
8.0.80.0030.01216.85
8.0.70.0000.00716.78
8.0.60.0050.00316.92
8.0.50.0040.00416.83
8.0.30.0100.00817.04
8.0.20.0130.00817.40
8.0.10.0070.00017.09
8.0.00.0150.00316.73
7.4.330.0000.00515.55
7.4.320.0030.00316.54
7.4.300.0030.00316.50
7.4.290.0040.00416.41
7.4.280.0080.00016.55
7.4.270.0030.00316.60
7.4.260.0030.00316.64
7.4.250.0000.00716.59
7.4.240.0030.00316.60
7.4.230.0080.00016.50
7.4.220.0110.00516.46
7.4.210.0090.01016.70
7.4.200.0000.00716.59
7.4.160.0090.00816.59
7.4.150.0110.00717.40
7.4.140.0140.00717.86
7.4.130.0170.00016.56
7.4.120.0130.00716.49
7.4.110.0070.01016.56
7.4.100.0060.01516.50
7.4.90.0070.01016.57
7.4.80.0030.01219.39
7.4.70.0140.00716.49
7.4.60.0030.01616.23
7.4.50.0080.00816.60
7.4.40.0040.01316.61
7.4.30.0170.00016.47
7.4.00.0070.00715.01
7.3.330.0030.00313.10
7.3.320.0030.00313.23
7.3.310.0070.00016.33
7.3.300.0040.00416.36
7.3.290.0130.00316.41
7.3.280.0090.00716.32
7.3.270.0030.01317.40
7.3.260.0160.00216.32
7.3.250.0080.01016.29
7.3.240.0130.00516.38
7.3.230.0160.00016.20
7.3.210.0070.01016.18
7.3.200.0100.00716.63
7.3.190.0040.01516.25
7.3.180.0080.00816.26
7.3.170.0080.00816.59
7.3.160.0100.00616.39
7.2.330.0100.00616.64
7.2.320.0130.00616.63
7.2.310.0130.01016.46
7.2.300.0110.00616.66
7.2.290.0090.00916.86
7.2.60.0000.01516.71
7.2.00.0150.00417.51
7.1.200.0110.01115.41
7.1.120.0120.00616.58
7.1.110.0030.01316.52
7.1.100.0140.00416.32
7.1.90.0100.01416.25
7.1.80.0060.00618.04
7.1.70.0090.00917.22
7.1.60.0250.01235.27
7.1.50.0230.00334.83
7.1.40.0210.00934.21
7.1.30.0220.01134.64
7.1.20.0220.00434.54
7.1.10.0030.00916.64
7.1.00.0070.00716.59
7.0.260.0150.00316.52
7.0.250.0090.00915.93
7.0.240.0090.00915.84
7.0.230.0330.01017.59
7.0.220.0060.01317.82
7.0.210.0060.01216.71
7.0.200.0030.00916.77
7.0.190.0070.00516.64
7.0.180.0130.00316.34
7.0.170.0040.00816.21
7.0.160.0040.01116.22
7.0.150.0060.00616.26
7.0.140.0000.01416.26
7.0.130.0040.00816.57
7.0.120.0040.00716.29
7.0.110.0060.00616.36
7.0.100.0060.00616.23
7.0.90.0030.00916.50
7.0.80.0050.00916.44
7.0.70.0040.01116.54
7.0.60.0040.00816.20
7.0.50.0000.01416.40
7.0.40.0040.01116.46
7.0.30.0030.01616.52
7.0.20.0030.01216.18
7.0.10.0060.00916.33
7.0.00.0030.01016.36

preferences:
30.7 ms | 403 KiB | 5 Q