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> ";

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.0120.00616.75
8.3.50.0000.01717.80
8.3.40.0110.00418.83
8.3.30.0110.00418.79
8.3.20.0040.00419.39
8.3.10.0050.00323.56
8.3.00.0040.00420.68
8.2.180.0040.01518.25
8.2.170.0080.00822.96
8.2.160.0140.00020.71
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0000.00819.77
8.2.120.0000.00726.35
8.2.110.0060.00322.11
8.2.100.0090.00317.84
8.2.90.0040.00418.02
8.2.80.0080.00317.97
8.2.70.0060.00317.93
8.2.60.0080.00018.04
8.2.50.0080.00018.10
8.2.40.0040.00419.38
8.2.30.0040.00419.18
8.2.20.0030.00618.05
8.2.10.0080.00018.02
8.2.00.0000.01017.61
8.1.280.0140.00425.92
8.1.270.0030.00618.87
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00422.19
8.1.230.0090.00322.18
8.1.220.0000.00817.77
8.1.210.0030.00918.77
8.1.200.0080.00417.23
8.1.190.0030.00517.23
8.1.180.0060.00318.10
8.1.170.0040.00418.39
8.1.160.0040.00418.89
8.1.150.0070.00018.74
8.1.140.0070.00022.22
8.1.130.0030.00620.00
8.1.120.0080.00017.37
8.1.110.0080.00017.37
8.1.100.0040.00417.43
8.1.90.0040.00417.39
8.1.80.0040.00417.32
8.1.70.0080.00017.27
8.1.60.0050.00317.61
8.1.50.0040.00817.53
8.1.40.0040.00417.57
8.1.30.0090.00017.52
8.1.20.0050.00217.59
8.1.10.0060.00317.49
8.1.00.0050.00317.43
8.0.300.0070.00021.53
8.0.290.0070.00316.75
8.0.280.0000.00718.52
8.0.270.0030.00517.26
8.0.260.0000.00618.36
8.0.250.0040.00416.84
8.0.240.0070.00016.96
8.0.230.0030.00316.94
8.0.220.0030.00616.94
8.0.210.0000.00716.89
8.0.200.0030.00316.88
8.0.190.0040.00416.95
8.0.180.0070.00016.79
8.0.170.0040.00416.87
8.0.160.0000.00716.91
8.0.150.0040.00316.86
8.0.140.0030.00316.75
8.0.130.0030.00313.27
8.0.120.0070.00016.75
8.0.110.0040.00316.93
8.0.100.0040.00416.74
8.0.90.0000.00816.72
8.0.80.0060.00916.91
8.0.70.0050.00317.02
8.0.60.0000.00716.97
8.0.50.0040.00416.73
8.0.30.0120.00516.92
8.0.20.0120.00617.40
8.0.10.0000.00816.91
8.0.00.0080.01016.78
7.4.330.0000.00515.55
7.4.320.0030.00316.60
7.4.300.0040.00416.59
7.4.290.0000.00816.57
7.4.280.0030.00616.43
7.4.270.0000.00916.54
7.4.260.0040.00416.52
7.4.250.0070.00016.48
7.4.240.0050.00216.47
7.4.230.0030.00316.57
7.4.220.0000.00716.50
7.4.210.0080.00616.65
7.4.200.0070.00016.42
7.4.160.0080.01016.49
7.4.140.0120.00717.86
7.4.130.0150.00416.63
7.4.120.0140.00616.52
7.4.110.0150.00316.62
7.4.100.0140.00316.34
7.4.90.0090.01316.38
7.4.80.0070.01019.39
7.4.70.0100.00616.47
7.4.60.0060.00916.34
7.4.50.0090.00616.51
7.4.40.0070.00716.62
7.4.00.0060.01214.96
7.3.330.0020.00313.32
7.3.320.0000.00513.18
7.3.310.0070.00016.29
7.3.300.0040.00416.20
7.3.290.0000.00716.24
7.3.280.0140.00516.32
7.3.260.0090.00916.53
7.3.240.0100.00916.46
7.3.230.0150.00616.58
7.3.210.0060.00916.31
7.3.200.0130.00316.48
7.3.190.0120.00616.36
7.3.180.0100.00716.40
7.3.170.0110.01116.44
7.3.160.0170.00316.38
7.3.120.0100.00317.15
7.3.110.0060.01017.15
7.3.100.0070.00717.15
7.3.90.0110.00317.15
7.3.80.0030.00817.15
7.3.70.0070.01117.15
7.3.60.0000.00917.15
7.3.50.0060.00917.15
7.3.40.0100.00317.15
7.3.30.0090.00917.15
7.3.20.0070.01017.15
7.3.10.0090.00317.15
7.3.00.0030.01317.15
7.2.330.0100.01016.41
7.2.320.0060.01416.71
7.2.310.0140.00416.70
7.2.300.0080.00816.52
7.2.290.0030.01416.73
7.2.240.0100.00717.15
7.2.230.0000.01417.15
7.2.220.0000.01217.15
7.2.210.0070.01017.15
7.2.200.0040.01217.15
7.2.190.0100.00717.15
7.2.180.0090.00017.15
7.2.170.0100.00317.15
7.2.160.0030.01017.15
7.2.150.0090.00617.15
7.2.140.0070.00717.15
7.2.130.0030.01317.15
7.2.120.0090.00617.15
7.2.110.0150.01115.50
7.2.100.0190.01015.55
7.2.90.0180.00915.56
7.2.80.0200.00615.53
7.2.70.0210.01215.65
7.2.60.0220.00915.69
7.2.50.0200.01115.75
7.2.40.0220.00915.71
7.2.30.0240.01115.78
7.2.20.0210.01016.26
7.2.10.0120.00816.37
7.2.00.0090.01116.29
7.1.330.0000.01517.15
7.1.320.0030.01317.15
7.1.310.0040.00717.15
7.1.300.0060.01217.15
7.1.290.0060.00617.15
7.1.280.0040.01117.15
7.1.270.0030.00717.15
7.1.260.0030.01217.15
7.1.250.0060.00917.15
7.1.230.0220.01113.75
7.1.220.0240.01013.78
7.1.210.0260.00413.84
7.1.200.0390.00313.63
7.1.190.0400.01013.60
7.1.180.0280.00713.72
7.1.170.0310.00413.80
7.1.160.0270.00813.79
7.1.150.0240.01313.80
7.1.140.0160.00614.67
7.1.130.0150.00614.55
7.1.120.0100.00814.54
7.1.110.0140.01114.85
7.1.100.0150.00814.88
7.1.90.0110.01214.80
7.1.80.0130.00814.41
7.1.70.0160.00514.68
7.1.60.0270.01032.62
7.1.50.0280.01332.80
7.1.40.0310.00932.71
7.1.30.0300.01132.72
7.1.20.0380.00732.83
7.1.10.0210.00514.69
7.1.00.0130.00914.52
5.6.380.0070.00613.89

preferences:
55.67 ms | 401 KiB | 5 Q