3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: text/html; charset=utf-8'); $arr = array( array( 'text' => 'Текст красного цвета', 'align' => 'center', 'valign' => 'center', 'bgcolor' => '#0000FF', 'colspan' => 2, 'rowspan' => 2, 'width' =>200, 'class' =>'red' ) , array( 'text' => 'Текст зеленого цвета' , 'cells' => '8,9' , 'align' => 'right' , 'valign' => 'bottom' , 'bgcolor' => '#FFFFFF', 'colspan' => 2, 'class' =>'green' )); $array0 = $arr[0]; $array1 = $arr[1]; $firstArray0 = array_shift($array0); $firstArray1 = array_shift($array1); $td1 .= "<td "; foreach ($array0 as $k0 => $v0) { $td1 .= $k0."=".$v0." "; } $td1 .= ">"; $td1 .= $firstArray0; $td1 .= "</td>"; $td2 .= "<td "; foreach ($array1 as $k1 => $v1) { $td2 .= $k1."=".$v1." "; } $td2 .= ">"; $td2 .= $firstArray1; $td2 .= "</td>"; $td = "<td width='100' height='100'></td>"; $table .= "<table>"; for ($i=0, $td1; $i<3; $i++) { $table .= "<tr>"; if ($i == 0) { $table .= $td1; $table .= $td; } elseif ($i == 1) { $table .= $td; } elseif ($i == 2) { $table .= $td; $table .= $td2; } $table .= "</tr>"; } $table .= "</table>"; echo "<!DOCTYPE html>"; echo "<style>td{border: 1px solid black;} .red{color:red} .green{color:green}</style>"; 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.3.40.0100.00718.67
8.3.30.0080.00619.27
8.3.20.0040.00420.20
8.3.10.0040.00423.69
8.3.00.0040.00420.81
8.2.170.0120.00322.96
8.2.160.0090.00920.33
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0080.00019.95
8.2.110.0040.01722.02
8.2.100.0110.00018.22
8.2.90.0030.00619.21
8.2.80.0030.00617.97
8.2.70.0030.00617.75
8.2.60.0090.00417.79
8.2.50.0000.01018.07
8.2.40.0040.00418.03
8.2.30.0030.00618.40
8.2.20.0030.00517.93
8.2.10.0040.00418.14
8.2.00.0000.00717.71
8.1.270.0040.00422.19
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0080.00023.76
8.1.230.0090.00319.08
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0000.00918.53
8.1.160.0070.00022.11
8.1.150.0000.00718.60
8.1.140.0030.00617.39
8.1.130.0070.00017.95
8.1.120.0040.00417.42
8.1.110.0000.00717.52
8.1.100.0040.00417.52
8.1.90.0050.00217.37
8.1.80.0040.00317.41
8.1.70.0070.00017.39
8.1.60.0030.00617.59
8.1.50.0040.00417.41
8.1.40.0040.00417.59
8.1.30.0050.00317.70
8.1.20.0040.00417.58
8.1.10.0000.00817.59
8.1.00.0000.00817.55
8.0.300.0070.00018.77
8.0.290.0000.00716.88
8.0.280.0000.00618.41
8.0.270.0040.00417.24
8.0.260.0000.00617.27
8.0.250.0000.00717.01
8.0.240.0040.00417.02
8.0.230.0000.00716.96
8.0.220.0030.00316.88
8.0.210.0000.00716.86
8.0.200.0080.00017.02
8.0.190.0000.00717.02
8.0.180.0050.00317.01
8.0.170.0040.00417.02
8.0.160.0070.00016.96
8.0.150.0040.00416.96
8.0.140.0070.00016.96
8.0.130.0030.00313.40
8.0.120.0080.00016.90
8.0.110.0080.00016.96
8.0.100.0000.00716.91
8.0.90.0020.00516.84
8.0.80.0120.00917.01
8.0.70.0030.00516.80
8.0.60.0000.00716.79
8.0.50.0040.00417.04
8.0.30.0100.01317.26
8.0.20.0100.00817.40
8.0.10.0020.00517.05
8.0.00.0090.00916.73
7.4.330.0030.00315.07
7.4.320.0000.00716.67
7.4.300.0030.00316.60
7.4.290.0030.00316.61
7.4.280.0060.00316.52
7.4.270.0070.00016.54
7.4.260.0070.00316.65
7.4.250.0000.00716.39
7.4.240.0040.00316.59
7.4.230.0030.00316.28
7.4.220.0160.00916.53
7.4.210.0150.00616.69
7.4.200.0000.00816.65
7.4.160.0140.00316.54
7.4.150.0130.01017.40
7.4.140.0090.00817.86
7.4.130.0110.00716.58
7.4.120.0050.01316.64
7.4.110.0100.00616.59
7.4.100.0070.01116.76
7.4.90.0120.00416.49
7.4.80.0090.00919.39
7.4.70.0040.01216.58
7.4.60.0090.00816.73
7.4.50.0030.00516.33
7.4.40.0140.00316.39
7.4.30.0030.01216.46
7.4.00.0050.01115.05
7.3.330.0050.00013.14
7.3.320.0040.00413.15
7.3.310.0070.00016.49
7.3.300.0060.00016.40
7.3.290.0090.00616.46
7.3.280.0090.00916.42
7.3.270.0180.00617.40
7.3.260.0090.00916.62
7.3.250.0110.00716.39
7.3.240.0090.00916.54
7.3.230.0080.00816.39
7.3.210.0100.00716.51
7.3.200.0060.01519.39
7.3.190.0090.00616.39
7.3.180.0000.01516.42
7.3.170.0100.00716.39
7.3.160.0030.01416.39
7.3.120.0090.00614.85
7.3.110.0070.01014.93
7.3.100.0130.00714.91
7.3.90.0100.00314.80
7.3.80.0110.00714.96
7.3.70.0000.01514.65
7.3.60.0060.00315.01
7.3.50.0080.00314.62
7.3.40.0060.00915.03
7.3.30.0000.01214.73
7.3.20.0070.00716.80
7.3.10.0000.01616.43
7.3.00.0070.00316.67
7.2.330.0130.00316.82
7.2.320.0120.00416.46
7.2.310.0140.00516.91
7.2.300.0140.01116.48
7.2.290.0090.00816.94
7.2.250.0030.01314.83
7.2.240.0060.01215.16
7.2.230.0070.00714.87
7.2.220.0060.00915.07
7.2.210.0040.01114.95
7.2.200.0000.01114.79
7.2.190.0040.01115.02
7.2.180.0030.01415.20
7.2.170.0040.01415.03
7.2.160.0110.00014.94
7.2.150.0030.01216.92
7.2.140.0000.01517.16
7.2.130.0060.01216.68
7.2.120.0060.00316.71
7.2.110.0030.01016.99
7.2.100.0090.00616.91
7.2.90.0060.00616.94
7.2.80.0080.00616.91
7.2.70.0100.00417.07
7.2.60.0070.01016.86
7.2.50.0060.00917.03
7.2.40.0070.01017.11
7.2.30.0060.00917.08
7.2.20.0030.01317.04
7.2.10.0090.00616.82
7.2.00.0050.00818.06
7.1.330.0070.01116.10
7.1.320.0080.00515.57
7.1.310.0070.00715.68
7.1.300.0030.01315.89
7.1.290.0090.00915.88
7.1.280.0040.01115.79
7.1.270.0000.01415.73
7.1.260.0040.00715.78
7.1.250.0070.01115.55
7.1.240.0030.00715.61
7.1.230.0040.01115.95
7.1.220.0040.00715.97
7.1.210.0070.01015.90
7.1.200.0030.01015.94
7.1.190.0040.01115.93
7.1.180.0040.00716.01
7.1.170.0100.00715.59
7.1.160.0060.00915.54
7.1.150.0040.01216.00
7.1.140.0070.01015.95
7.1.130.0090.00915.87
7.1.120.0070.01115.90
7.1.110.0100.00715.50
7.1.100.0050.00717.06
7.1.90.0080.00815.79
7.1.80.0070.00715.84
7.1.70.0020.00916.49
7.1.60.0080.01017.63
7.1.50.0150.01025.25
7.1.40.0060.00615.57
7.1.30.0030.00915.89
7.1.20.0100.00315.86
7.1.10.0060.00915.68
7.1.00.0050.05018.97
7.0.330.0080.00415.30
7.0.320.0030.01315.59
7.0.310.0090.00315.63
7.0.300.0030.01315.61
7.0.290.0000.00815.23
7.0.280.0040.01515.39
7.0.270.0060.00915.50
7.0.260.0030.01315.42
7.0.250.0100.00715.56
7.0.240.0100.00615.46
7.0.230.0060.00615.58
7.0.220.0070.00315.59
7.0.210.0030.01015.39
7.0.200.0020.00615.99
7.0.190.0080.00415.45
7.0.180.0080.00315.50
7.0.170.0030.00715.33
7.0.160.0000.01515.57
7.0.150.0060.00615.53
7.0.140.0030.04118.74
7.0.130.0000.01415.55
7.0.120.0070.00715.56
7.0.110.0090.00615.51
7.0.100.0040.01115.52
7.0.90.0100.00615.46
7.0.80.0070.00415.45
7.0.70.0100.00315.48
7.0.60.0090.03817.77
7.0.50.0050.03116.73
7.0.40.0120.04016.79
7.0.30.0270.03116.68
7.0.20.0130.02516.71
7.0.10.0150.03716.79
7.0.00.0120.04316.68
5.6.400.0030.00914.73
5.6.390.0000.01413.98
5.6.380.0100.00614.04
5.6.370.0030.00714.45
5.6.360.0000.01114.37
5.6.350.0030.01014.11
5.6.340.0040.01214.36
5.6.330.0000.01414.57
5.6.320.0030.01314.58
5.6.310.0070.00714.05
5.6.300.0050.00514.82
5.6.290.0030.01014.41
5.6.280.0050.04017.84
5.6.270.0070.00714.52
5.6.260.0130.00014.41
5.6.250.0000.01414.66
5.6.240.0040.00814.39
5.6.230.0030.01014.66
5.6.220.0090.00614.21
5.6.210.0100.04317.36
5.6.200.0090.04416.20
5.6.190.0050.04717.45
5.6.180.0170.04417.49
5.6.170.0170.02717.62
5.6.160.0100.04017.39
5.6.150.0100.02216.21
5.6.140.0050.04516.19
5.6.130.0070.04316.25
5.6.120.0080.03717.73
5.6.110.0030.04917.76
5.6.100.0070.04017.74
5.6.90.0070.04517.67
5.6.80.0080.03217.52
5.6.70.0140.03017.34
5.6.60.0000.01514.23
5.6.50.0090.00014.35
5.6.40.0030.01314.10
5.6.30.0070.00714.28
5.6.20.0030.01014.57
5.6.10.0030.01014.69
5.6.00.0070.01114.39
5.5.380.0090.00014.36
5.5.370.0060.00914.13
5.5.360.0100.00614.46
5.5.350.0150.03917.48
5.5.340.0060.03916.17
5.5.330.0090.02317.50
5.5.320.0150.02717.36
5.5.310.0100.03817.31
5.5.300.0070.02416.22
5.5.290.0040.02416.15
5.5.280.0070.04717.73
5.5.270.0080.02717.62
5.5.260.0030.03417.53
5.5.250.0070.04317.58
5.5.240.0110.01717.15
5.5.230.0030.01214.43
5.5.220.0040.01414.11
5.5.210.0060.00614.17
5.5.200.0160.00014.32
5.5.190.0060.01014.34
5.5.180.0030.00914.39
5.5.170.0060.00614.41
5.5.160.0030.01314.49
5.5.150.0030.00614.46
5.5.140.0140.00014.61
5.5.130.0060.00614.09
5.5.120.0030.01014.42
5.5.110.0030.01014.21
5.5.100.0030.01414.48
5.5.90.0070.00714.48
5.5.80.0030.01014.24
5.5.70.0030.01014.30
5.5.60.0000.01514.36
5.5.50.0140.00014.09
5.5.40.0060.00614.09
5.5.30.0030.00614.39
5.5.20.0040.01114.33
5.5.10.0040.01114.39
5.5.00.0040.00914.30
5.4.450.0080.03115.33
5.4.440.0430.03015.30
5.4.430.0470.03215.38
5.4.420.0350.00315.46
5.4.410.0050.03314.84
5.4.400.0210.02914.73
5.4.390.0130.03014.79
5.4.380.0100.03314.85
5.4.370.0020.02514.84
5.4.360.0030.03014.72
5.4.350.0100.01811.36
5.4.340.0030.02911.65
5.4.330.0040.00411.19
5.4.320.0070.02311.77
5.4.310.0080.02511.70
5.4.300.0090.03411.74
5.4.290.0070.03111.79
5.4.280.0070.02811.79
5.4.270.0120.02511.52
5.4.260.0090.02811.86
5.4.250.0060.03011.57
5.4.240.0100.02511.64
5.4.230.0080.02911.72
5.4.220.0080.02711.55
5.4.210.0050.02411.64
5.4.200.0090.02011.73
5.4.190.0040.02411.75
5.4.180.0070.02411.65
5.4.170.0100.02311.58
5.4.160.0070.02411.83
5.4.150.0040.02711.77
5.4.140.0090.02511.55
5.4.130.0050.02411.54
5.4.120.0060.02511.41
5.4.110.0110.02211.41
5.4.100.0040.03011.51
5.4.90.0100.02811.57
5.4.80.0050.02811.44
5.4.70.0040.02811.60
5.4.60.0050.03011.55
5.4.50.0060.03111.56
5.4.40.0090.02911.57
5.4.30.0070.03211.54
5.4.20.0100.02911.47
5.4.10.0060.02811.48
5.4.00.0070.02711.31
5.3.290.0030.02611.66
5.3.280.0110.03311.62
5.3.270.0170.04611.65
5.3.260.0050.04511.64
5.3.250.0090.03911.62
5.3.240.0090.04611.56
5.3.230.0140.03811.52
5.3.220.0080.03811.44
5.3.210.0070.03411.58
5.3.200.0070.03911.58
5.3.190.0110.04911.65
5.3.180.0140.04711.65
5.3.170.0090.04311.67
5.3.160.0050.03011.65
5.3.150.0070.03611.63
5.3.140.0090.03111.52
5.3.130.0040.02711.55
5.3.120.0060.02311.52
5.3.110.0070.03011.49
5.3.100.0070.02511.31
5.3.90.0060.02211.27
5.3.80.0050.02411.27
5.3.70.0040.02811.28
5.3.60.0080.04011.24
5.3.50.0110.03411.19
5.3.40.0050.04711.24
5.3.30.0100.03611.27
5.3.20.0110.02311.05
5.3.10.0110.02710.91
5.3.00.0040.02310.92
5.2.170.0040.0389.20
5.2.160.0050.0519.20
5.2.150.0160.0719.20
5.2.140.0100.0499.20
5.2.130.0110.0419.16
5.2.120.0170.0589.15
5.2.110.0160.0739.16
5.2.100.0100.0419.16
5.2.90.0060.0359.15
5.2.80.0090.0339.15
5.2.70.0090.0469.15
5.2.60.0100.0399.11
5.2.50.0040.0359.08
5.2.40.0080.0319.05
5.2.30.0050.0389.02
5.2.20.0110.0349.01
5.2.10.0090.0348.95
5.2.00.0050.0408.81
5.1.60.0040.0348.10
5.1.50.0080.0328.09
5.1.40.0060.0338.07
5.1.30.0160.0628.42
5.1.20.0180.0568.45
5.1.10.0080.0538.18
5.1.00.0260.0868.17
5.0.50.0060.0296.66
5.0.40.0080.0286.52
5.0.30.0040.0356.33
5.0.20.0060.0296.30
5.0.10.0130.0336.28
5.0.00.0090.0556.27
4.4.90.0040.0244.78
4.4.80.0120.0244.75
4.4.70.0060.0204.75
4.4.60.0060.0234.76
4.4.50.0060.0164.77
4.4.40.0060.0364.71
4.4.30.0060.0224.76
4.4.20.0050.0264.84
4.4.10.0060.0204.85
4.4.00.0080.0284.76
4.3.110.0050.0204.67
4.3.100.0060.0194.67
4.3.90.0110.0314.63
4.3.80.0070.0324.58
4.3.70.0060.0404.63
4.3.60.0050.0194.63
4.3.50.0020.0004.63
4.3.40.0090.0624.53
4.3.30.0030.0163.32
4.3.20.0030.0163.30
4.3.10.0030.0163.26
4.3.00.0170.0206.44

preferences:
40.75 ms | 400 KiB | 5 Q