3v4l.org

run code in 300+ PHP versions simultaneously
<?php // NO! /* <li<?php if (! has_post_thumbnail() ) { echo ' class="no-img"'; } ?>> <?php if ( has_post_thumbnail() ) { the_post_thumbnail('alm-thumbnail'); }?> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> </li> */ $imgClass = 'no-img'; $img = ''; $title = the_title(); $link = the_permalink(); if(has_post_thumbnail()) { $imgClass = ''; $img = the_post_thumbnail('alm-thumbnail'); } // look!!! here you can debug and check the values of $img and other things to check your logic etc //HTML output starts HERE: ?> echo " <li class='${imgClass}'> ${img} <h3><a href='${link}'>${title}</a></h3> </li> "; // or other output idea

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.0060.01618.56
8.3.50.0110.00418.15
8.3.40.0030.01218.88
8.3.30.0100.00718.84
8.3.20.0080.00019.42
8.3.10.0030.00521.69
8.3.00.0030.00520.68
8.2.180.0100.00716.88
8.2.170.0070.00722.96
8.2.160.0130.00619.03
8.2.150.0160.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00418.03
8.2.120.0110.00426.35
8.2.110.0090.00020.53
8.2.100.0080.00417.72
8.2.90.0000.00817.63
8.2.80.0080.00018.81
8.2.70.0050.00317.68
8.2.60.0030.00618.22
8.2.50.0060.00318.10
8.2.40.0060.00320.94
8.2.30.0050.00319.19
8.2.20.0090.00018.06
8.2.10.0040.00418.03
8.2.00.0000.00817.60
8.1.280.0100.01025.92
8.1.270.0090.00018.88
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00018.84
8.1.230.0070.00317.70
8.1.220.0030.00617.79
8.1.210.0080.00018.77
8.1.200.0060.00317.47
8.1.190.0040.00417.53
8.1.180.0040.00418.10
8.1.170.0000.00818.59
8.1.160.0040.00418.85
8.1.150.0040.00418.84
8.1.140.0000.00722.09
8.1.130.0030.00320.13
8.1.120.0040.00417.43
8.1.110.0040.00317.44
8.1.100.0040.00417.38
8.1.90.0070.00317.42
8.1.80.0000.00717.42
8.1.70.0070.00317.30
8.1.60.0000.00817.56
8.1.50.0040.00417.52
8.1.40.0030.00517.46
8.1.30.0070.00317.58
8.1.20.0000.00817.55
8.1.10.0000.00717.43
8.1.00.0040.00417.52
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0000.00818.40
8.0.270.0000.00817.13
8.0.260.0040.00418.46
8.0.250.0030.00317.00
8.0.240.0040.00416.86
8.0.230.0000.00816.97
8.0.220.0050.00316.90
8.0.210.0000.00716.81
8.0.200.0060.00016.96
8.0.190.0050.00316.90
8.0.180.0000.00816.81
8.0.170.0080.00016.88
8.0.160.0030.00316.90
8.0.150.0030.00516.92
8.0.140.0000.00716.84
8.0.130.0030.00313.31
8.0.120.0000.00716.84
8.0.110.0070.00016.89
8.0.100.0060.00316.96
8.0.90.0000.00716.91
8.0.80.0110.00516.91
8.0.70.0050.00216.90
8.0.60.0040.00416.96
8.0.50.0050.00216.79
8.0.30.0110.00616.98
8.0.20.0090.00917.40
8.0.10.0030.00617.01
8.0.00.0080.01316.63
7.4.330.0000.00515.55
7.4.320.0030.00316.47
7.4.300.0030.00316.41
7.4.290.0000.00716.40
7.4.280.0030.00616.60
7.4.270.0030.00316.63
7.4.260.0030.00616.59
7.4.250.0000.00716.33
7.4.240.0000.00816.61
7.4.230.0040.00416.69
7.4.220.0040.00416.70
7.4.210.0060.01316.52
7.4.200.0040.00416.59
7.4.160.0090.01016.52
7.4.140.0120.00617.86
7.4.130.0130.00916.62
7.4.120.0100.00816.56
7.4.110.0060.01216.60
7.4.100.0060.01016.60
7.4.90.0140.00316.69
7.4.80.0000.01619.39
7.4.70.0040.01816.42
7.4.60.0060.01016.61
7.4.50.0090.00616.31
7.4.40.0090.00916.43
7.4.00.0140.00314.79
7.3.330.0000.00513.10
7.3.320.0070.00013.01
7.3.310.0000.00716.35
7.3.300.0000.00816.32
7.3.290.0030.00316.16
7.3.280.0100.00616.27
7.3.260.0050.01216.34
7.3.240.0070.01016.33
7.3.230.0090.00916.45
7.3.210.0100.00616.21
7.3.200.0060.01116.45
7.3.190.0070.01516.54
7.3.180.0030.01316.37
7.3.170.0170.00816.46
7.3.160.0030.01316.34
7.3.120.0060.00914.48
7.3.110.0090.00614.95
7.3.100.0060.00914.71
7.3.90.0060.00914.62
7.3.80.0090.00614.45
7.3.70.0000.01314.51
7.3.60.0100.00314.54
7.3.50.0100.00614.55
7.3.40.0140.00314.50
7.3.30.0080.00814.45
7.3.20.0000.01516.53
7.3.10.0100.00716.16
7.3.00.0100.01016.61
7.2.330.0120.01216.36
7.2.320.0100.01316.61
7.2.310.0100.00616.21
7.2.300.0030.01316.45
7.2.290.0090.00816.43
7.2.240.0060.00814.84
7.2.230.0090.00614.66
7.2.220.0030.01314.82
7.2.210.0120.00614.90
7.2.200.0060.00914.63
7.2.190.0000.01714.66
7.2.180.0130.00314.96
7.2.170.0070.00714.83
7.2.160.0000.01514.77
7.2.150.0080.00416.63
7.2.140.0070.01016.40
7.2.130.0130.00316.44
7.2.120.0030.01016.68
7.2.110.0080.01016.46
7.2.100.0050.01216.45
7.2.90.0070.00616.69
7.2.80.0090.00616.34
7.2.70.0090.00616.38
7.2.60.0080.00816.63
7.2.50.0030.01216.74
7.2.40.0030.01316.59
7.2.30.0050.01216.56
7.2.20.0060.00916.77
7.2.10.0080.00816.71
7.2.00.0080.00316.71
7.1.330.0040.01215.36
7.1.320.0110.00415.64
7.1.310.0030.01215.68
7.1.300.0070.00415.35
7.1.290.0060.00915.45
7.1.280.0060.00915.20
7.1.270.0040.00715.66
7.1.260.0030.01015.66
7.1.250.0030.01015.51
7.1.230.0000.01315.66
7.1.220.0090.00615.55
7.1.210.0120.00315.70
7.1.200.0080.00615.41
7.1.190.0030.01115.64
7.1.180.0070.00715.54
7.1.170.0000.01315.41
7.1.160.0060.00915.42
7.1.150.0100.00315.53
7.1.140.0070.00715.19
7.1.130.0040.00715.42
7.1.120.0000.01115.69
7.1.110.0030.01015.45
7.1.100.0090.00615.70
7.1.90.0060.00915.76
7.1.80.0030.01215.66
7.1.70.0090.00615.52
7.1.60.0120.01733.50
7.1.50.0230.01033.64
7.1.40.0270.00633.65
7.1.30.0260.01333.74
7.1.20.0160.01633.71
7.1.10.0070.00715.49
7.1.00.0090.00615.56
5.6.380.0090.00313.80

preferences:
53.39 ms | 400 KiB | 5 Q