3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (true) { $count++; $block_1 .= <<<EOT <figure id=\"img{$count}\"> <div class="image"><img src=\"{$row['imgpath']}\" alt=\"{$row['shortdesc']}\"></div><figcaption> <h1 class=\"product\">{$row['product']}</h1> <p class=\"description\">{$row['longdesc']}</p> </figcaption> </figure> EOT; $block_2 .= '<a href="#img'.$count.'"><img src="'.$row['imgpath'].'" alt="'.$row['shortdesc'].'"></a>'; } var_dump($block_1);

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.0100.01318.68
8.3.50.0120.00821.27
8.3.40.0070.00718.79
8.3.30.0110.00320.16
8.3.20.0070.00720.21
8.3.10.0080.00020.93
8.3.00.0050.00322.39
8.2.180.0170.00316.63
8.2.170.0070.00722.96
8.2.160.0060.01521.99
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00020.86
8.2.110.0030.00619.21
8.2.100.0060.00617.97
8.2.90.0040.00419.21
8.2.80.0000.00818.16
8.2.70.0080.00017.50
8.2.60.0000.00917.93
8.2.50.0040.00418.07
8.2.40.0040.00418.09
8.2.30.0050.00319.56
8.2.20.0040.00417.75
8.2.10.0040.00417.82
8.2.00.0040.00417.80
8.1.280.0060.00925.92
8.1.270.0030.01023.99
8.1.260.0050.00326.35
8.1.250.0110.00428.09
8.1.240.0100.00023.97
8.1.230.0070.00420.91
8.1.220.0040.00418.77
8.1.210.0060.00319.01
8.1.200.0040.00417.35
8.1.190.0040.00417.52
8.1.180.0080.00018.10
8.1.170.0040.00418.63
8.1.160.0040.00418.91
8.1.150.0050.00318.59
8.1.140.0050.00217.39
8.1.130.0040.00417.89
8.1.120.0020.00517.42
8.1.110.0030.00617.51
8.1.100.0000.00817.48
8.1.90.0000.00717.48
8.1.80.0030.00317.36
8.1.70.0030.00317.37
8.1.60.0030.00717.53
8.1.50.0040.00417.57
8.1.40.0080.00017.54
8.1.30.0050.00317.50
8.1.20.0080.00017.60
8.1.10.0090.00017.48
8.1.00.0040.00417.50
8.0.300.0040.00419.85
8.0.290.0000.00717.18
8.0.280.0030.00318.39
8.0.270.0070.00017.16
8.0.260.0050.00216.91
8.0.250.0030.00317.08
8.0.240.0030.00516.89
8.0.230.0100.00016.93
8.0.220.0030.00516.88
8.0.210.0030.00616.84
8.0.200.0000.00716.95
8.0.190.0030.00416.97
8.0.180.0040.00417.01
8.0.170.0040.00416.89
8.0.160.0000.00716.83
8.0.150.0040.00316.88
8.0.140.0090.00016.91
8.0.130.0000.00613.46
8.0.120.0050.00316.98
8.0.110.0040.00417.04
8.0.100.0040.00416.79
8.0.90.0050.00316.98
8.0.80.0060.01316.93
8.0.70.0000.00816.88
8.0.60.0070.00016.94
8.0.50.0070.00016.87
8.0.30.0100.01117.31
8.0.20.0090.01117.40
8.0.10.0040.00416.89
8.0.00.0130.00516.79
7.4.330.0030.00316.89
7.4.320.0000.00716.45
7.4.300.0040.00416.52
7.4.290.0030.00316.48
7.4.280.0030.00316.55
7.4.270.0030.00316.46
7.4.260.0050.00013.22
7.4.250.0000.00816.36
7.4.240.0020.00516.55
7.4.230.0030.00316.59
7.4.220.0100.00716.52
7.4.210.0070.00816.60
7.4.200.0070.00016.30
7.4.190.0040.00416.57
7.4.160.0030.01316.33
7.4.150.0130.00717.40
7.4.140.0100.01017.86
7.4.130.0080.00816.54
7.4.120.0080.01116.55
7.4.110.0070.01416.39
7.4.100.0150.00616.52
7.4.90.0040.01316.61
7.4.80.0100.00719.39
7.4.70.0050.01116.64
7.4.60.0000.01616.57
7.4.50.0000.00916.52
7.4.40.0060.01222.77
7.4.30.0130.00416.67
7.3.330.0050.00013.09
7.3.320.0030.00313.36
7.3.310.0070.00016.41
7.3.300.0000.00716.32
7.3.290.0030.01016.46
7.3.280.0130.00216.41
7.3.270.0060.01017.40
7.3.260.0100.01318.24
7.3.250.0110.00716.50
7.3.240.0070.01016.57
7.3.230.0100.01016.63
7.3.210.0060.01116.43
7.3.200.0140.00419.39
7.3.190.0030.01316.38
7.3.180.0120.00616.55
7.3.170.0090.00616.49
7.3.160.0120.00416.57
7.2.330.0060.01416.43
7.2.320.0090.00916.07
7.2.310.0150.00716.49
7.2.300.0100.01316.41
7.2.290.0080.00816.47
5.4.230.0130.05012.38
5.4.220.0160.04312.38
5.4.210.0110.04312.38
5.4.200.0140.04912.38
5.4.190.0140.04512.37
5.4.180.0150.04812.37
5.4.170.0150.04212.38
5.4.160.0260.06512.38
5.4.150.0120.04712.37
5.4.140.0100.04512.07
5.4.130.0220.06112.04
5.4.120.0120.04312.01
5.4.110.0120.04212.01
5.4.100.0100.04512.01
5.4.90.0110.04612.00
5.4.80.0130.04312.00
5.4.70.0140.04312.00
5.4.60.0160.04512.00
5.4.50.0130.04112.00
5.4.40.0140.04711.99
5.4.30.0230.08811.98
5.4.20.0140.04511.98
5.4.10.0130.04311.99
5.4.00.0110.04911.47
5.3.280.0130.04912.71
5.3.270.0130.05012.73
5.3.260.0130.04912.72
5.3.250.0220.05712.72
5.3.240.0130.04712.72
5.3.230.0140.04312.71
5.3.220.0090.04612.68
5.3.210.0140.04812.68
5.3.200.0140.04712.68
5.3.190.0110.04712.67
5.3.180.0090.04712.67
5.3.170.0100.04312.67
5.3.160.0140.03812.67
5.3.150.0110.04212.68
5.3.140.0130.04012.66
5.3.130.0120.04212.66
5.3.120.0130.04212.66
5.3.110.0120.04512.66
5.3.100.0110.04212.12
5.3.90.0130.04112.08
5.3.80.0140.05312.07
5.3.70.0100.04312.07
5.3.60.0120.04112.06
5.3.50.0140.04312.00
5.3.40.0200.06412.00
5.3.30.0120.04111.94
5.3.20.0140.03811.72
5.3.10.0140.03611.68
5.3.00.0140.03811.67

preferences:
42.68 ms | 401 KiB | 5 Q