3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function the_title() { return 'A Title';} function the_permalink() { return 'https://google.com';} function has_post_thumbnail() { return true;} function the_post_thumbnail($whateverThisIs) { return '<img src="https://upload.wikimedia.org/wikipedia/en/2/22/Charlie_Brown.png" />'; } function get_post_custom_values() { $key = 'Gal_IMG'; $value = 'https://en.wikipedia.org/wiki/Main_Page#/media/File:BepiColombo_spacecraft_model.png'; return 'https://en.wikipedia.org/wiki/Main_Page#/media/File:BepiColombo_spacecraft_model.png'; } $imgClass = 'no-img'; $img = ''; $title = the_title(); $link = the_permalink(); // $BG_Img = get_post_custom_values('GalIMG') ; if(has_post_thumbnail()) { $imgClass = ''; $img = the_post_thumbnail('alm-thumbnail'); } echo " <li class='${imgClass}'> ${img} <h3> <a href='${link}' style='background-image:url('${BG_Img}'); display:block;'>${title} </a> </h3> </li> "; ?> <li class="<?= $imgClass ?>"> <?= $img ?> <h3> <a href="<?= $link ?>" style="background-image:url('<?= $BG_Img ?>'); display:block;"><?= $title ?></a> </h3> </li>

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.0070.01116.63
8.3.50.0110.00418.23
8.3.40.0110.01118.54
8.3.30.0150.00718.82
8.3.20.0080.00019.29
8.3.10.0040.00421.85
8.3.00.0040.00420.55
8.2.180.0140.00318.41
8.2.170.0090.00919.08
8.2.160.0110.00422.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00719.72
8.2.120.0070.00026.35
8.2.110.0030.00720.94
8.2.100.0090.00317.91
8.2.90.0000.01117.75
8.2.80.0030.00517.97
8.2.70.0030.00617.92
8.2.60.0040.00418.03
8.2.50.0040.00418.10
8.2.40.0000.00819.52
8.2.30.0020.00519.29
8.2.20.0040.00418.01
8.2.10.0040.00418.20
8.2.00.0000.01117.79
8.1.280.0100.00725.92
8.1.270.0000.00819.01
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0030.00722.25
8.1.230.0110.00022.13
8.1.220.0000.00817.78
8.1.210.0050.00318.77
8.1.200.0060.00317.13
8.1.190.0060.00317.00
8.1.180.0030.00718.10
8.1.170.0040.00418.53
8.1.160.0000.00718.91
8.1.150.0000.00718.85
8.1.140.0030.00422.10
8.1.130.0000.00720.02
8.1.120.0050.00317.26
8.1.110.0050.00217.35
8.1.100.0040.00417.31
8.1.90.0000.00817.45
8.1.80.0000.01017.32
8.1.70.0000.00817.47
8.1.60.0060.00317.58
8.1.50.0040.00417.45
8.1.40.0050.00317.41
8.1.30.0060.00317.72
8.1.20.0000.00717.61
8.1.10.0000.00817.43
8.1.00.0050.00217.36
8.0.300.0000.00818.77
8.0.290.0040.00716.75
8.0.280.0040.00418.45
8.0.270.0070.00017.18
8.0.260.0000.00618.48
8.0.250.0070.00016.98
8.0.240.0060.00017.02
8.0.230.0040.00416.88
8.0.220.0030.00516.94
8.0.210.0000.00716.83
8.0.200.0030.00317.01
8.0.190.0000.00716.84
8.0.180.0060.00316.96
8.0.170.0090.00016.83
8.0.160.0080.00016.89
8.0.150.0040.00416.79
8.0.140.0040.00416.90
8.0.130.0050.00413.30
8.0.120.0040.00417.00
8.0.110.0000.00816.88
8.0.100.0030.00316.94
8.0.90.0030.00316.78
8.0.80.0080.01216.92
8.0.70.0000.00816.79
8.0.60.0080.00016.77
8.0.50.0040.00416.86
8.0.30.0110.00817.22
8.0.20.0130.00717.40
8.0.10.0070.00016.93
8.0.00.0080.01016.59
7.4.330.0040.00015.55
7.4.320.0000.00616.58
7.4.300.0060.00016.59
7.4.290.0000.00716.60
7.4.280.0030.00616.54
7.4.270.0080.00416.65
7.4.260.0040.00416.49
7.4.250.0000.00816.49
7.4.240.0030.00316.62
7.4.230.0000.00716.70
7.4.220.0000.00716.51
7.4.210.0050.01216.56
7.4.200.0000.00716.47
7.4.160.0050.01116.55
7.4.140.0090.00917.86
7.4.130.0060.01816.55
7.4.120.0110.00816.44
7.4.110.0150.00416.51
7.4.100.0130.00416.68
7.4.90.0110.00616.59
7.4.80.0110.01119.39
7.4.70.0100.00716.51
7.4.60.0030.01416.48
7.4.50.0000.01016.50
7.4.40.0030.01216.33
7.4.00.0000.01415.00
7.3.330.0050.00013.23
7.3.320.0000.00513.38
7.3.310.0060.00316.34
7.3.300.0030.00316.23
7.3.290.0030.00316.43
7.3.280.0090.00916.38
7.3.260.0070.01216.57
7.3.240.0100.01116.39
7.3.230.0040.01316.45
7.3.210.0080.00816.65
7.3.200.0080.00816.59
7.3.190.0130.00716.51
7.3.180.0070.01116.60
7.3.170.0140.00716.36
7.3.160.0150.00316.42
7.2.330.0140.00316.38
7.2.320.0100.01016.32
7.2.310.0120.00316.43
7.2.300.0060.01116.64
7.2.290.0100.00716.84
7.2.110.0060.00816.61
7.2.100.0120.00416.39
7.2.90.0070.00716.38
7.2.80.0080.00816.54
7.2.70.0080.00816.63
7.2.60.0090.00316.77
7.2.50.0100.01017.04
7.2.40.0080.00816.63
7.2.30.0090.00616.76
7.2.20.0050.01016.49
7.2.10.0000.01416.81
7.2.00.0060.00616.84
7.1.230.0030.01015.50
7.1.220.0060.00515.77
7.1.210.0030.00815.31
7.1.200.0000.01315.63
7.1.190.0090.00615.67
7.1.180.0070.00715.60
7.1.170.0110.00015.43
7.1.160.0040.00715.81
7.1.150.0050.00515.38
7.1.140.0030.01015.69
7.1.130.0000.01215.28
7.1.120.0060.00915.74
7.1.110.0090.00315.62
7.1.100.0090.00615.84
7.1.90.0090.00615.79
7.1.80.0030.01315.52
7.1.70.0110.00315.59
7.1.60.0250.00933.59
7.1.50.0300.00033.63
7.1.40.0240.00733.46
7.1.30.0190.00933.61
7.1.20.0210.01033.56
7.1.10.0070.00715.63
7.1.00.0030.01215.59
5.6.380.0080.00314.11

preferences:
59.33 ms | 401 KiB | 5 Q