3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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'; } $imgClass = 'no-img'; $img = ''; $title = the_title(); $link = the_permalink(); // $BG_Img = 'background-image:url('+ $value +');display:block;'; // if(has_post_thumbnail()) { $imgClass = ''; $img = the_post_thumbnail('alm-thumbnail'); } echo " <li class='${imgClass}'> ${img} <h3> <a href='${link}' style='${BG_Img}'>${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.70.0150.00616.58
8.3.60.0100.00718.43
8.3.50.0090.00617.96
8.3.40.0090.00618.84
8.3.30.0000.01518.76
8.3.20.0050.00319.30
8.3.10.0040.00421.95
8.3.00.0000.00720.55
8.2.180.0090.00618.79
8.2.170.0100.00722.96
8.2.160.0140.00719.06
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00718.09
8.2.120.0000.00726.35
8.2.110.0060.00320.58
8.2.100.0120.00017.91
8.2.90.0040.00417.63
8.2.80.0000.00917.97
8.2.70.0000.00817.92
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0000.00719.16
8.2.30.0040.00419.27
8.2.20.0040.00418.01
8.2.10.0040.00418.13
8.2.00.0090.00017.73
8.1.280.0110.00425.92
8.1.270.0060.00318.89
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.52
8.1.230.0070.00422.17
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0000.01017.23
8.1.190.0040.00417.38
8.1.180.0090.00018.10
8.1.170.0040.00418.46
8.1.160.0050.00218.84
8.1.150.0040.00418.84
8.1.140.0030.00322.13
8.1.130.0060.00320.11
8.1.120.0000.00817.46
8.1.110.0040.00417.39
8.1.100.0000.00717.41
8.1.90.0040.00417.48
8.1.80.0070.00317.43
8.1.70.0040.00417.32
8.1.60.0000.00817.56
8.1.50.0000.00817.57
8.1.40.0000.00817.50
8.1.30.0060.00317.65
8.1.20.0050.00217.61
8.1.10.0000.00717.60
8.1.00.0080.00017.41
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0070.00018.51
8.0.270.0040.00417.25
8.0.260.0070.00018.38
8.0.250.0040.00416.91
8.0.240.0070.00017.02
8.0.230.0000.00916.86
8.0.220.0030.00316.79
8.0.210.0030.00316.88
8.0.200.0040.00416.98
8.0.190.0040.00417.02
8.0.180.0040.00416.93
8.0.170.0090.00016.82
8.0.160.0040.00416.80
8.0.150.0070.00016.82
8.0.140.0070.00016.84
8.0.130.0000.00513.41
8.0.120.0040.00416.74
8.0.110.0030.00316.86
8.0.100.0040.00416.77
8.0.90.0040.00416.80
8.0.80.0080.00816.89
8.0.70.0000.00716.95
8.0.60.0040.00416.78
8.0.50.0040.00416.68
8.0.30.0090.01017.17
8.0.20.0110.01217.40
8.0.10.0070.00016.93
8.0.00.0150.00417.00
7.4.330.0020.00215.55
7.4.320.0000.00716.51
7.4.300.0060.00016.62
7.4.290.0000.00716.46
7.4.280.0050.00616.61
7.4.270.0020.00516.53
7.4.260.0090.00016.41
7.4.250.0000.00716.39
7.4.240.0000.00716.54
7.4.230.0000.00716.36
7.4.220.0040.00416.64
7.4.210.0080.01016.48
7.4.200.0040.00416.46
7.4.160.0100.00616.51
7.4.140.0140.00917.86
7.4.130.0070.01416.29
7.4.120.0110.00916.60
7.4.110.0130.01016.52
7.4.100.0040.01516.41
7.4.90.0160.00716.67
7.4.80.0060.00919.39
7.4.70.0180.00016.60
7.4.60.0100.01016.43
7.4.50.0030.01316.66
7.4.40.0210.00416.50
7.4.00.0060.01115.04
7.3.330.0000.00613.22
7.3.320.0030.00313.25
7.3.310.0030.00516.48
7.3.300.0000.00716.41
7.3.290.0030.00316.45
7.3.280.0080.00716.43
7.3.260.0160.00416.54
7.3.240.0110.00716.50
7.3.230.0160.00316.40
7.3.210.0130.00316.41
7.3.200.0110.00516.74
7.3.190.0150.00616.63
7.3.180.0000.01716.50
7.3.170.0100.01016.44
7.3.160.0170.00016.50
7.3.120.0140.00314.89
7.3.110.0070.01115.16
7.3.100.0060.00915.05
7.3.90.0070.00714.65
7.3.80.0100.00714.93
7.3.70.0100.00314.61
7.3.60.0000.01014.85
7.3.50.0070.00714.75
7.3.40.0100.00714.92
7.3.30.0030.00914.89
7.3.20.0090.00016.67
7.3.10.0070.00716.91
7.3.00.0050.01016.57
7.2.330.0090.01116.41
7.2.320.0120.00616.62
7.2.310.0120.00416.62
7.2.300.0060.00916.61
7.2.290.0070.01016.76
7.2.250.0100.00615.23
7.2.240.0070.01314.89
7.2.230.0030.01315.04
7.2.220.0070.00615.01
7.2.210.0030.01314.73
7.2.200.0070.00715.08
7.2.190.0040.01114.75
7.2.180.0000.01314.83
7.2.170.0030.01015.01
7.2.130.0030.00716.88
7.2.120.0060.00316.86
7.2.110.0080.00416.61
7.2.100.0100.00216.61
7.2.90.0050.00816.67
7.2.80.0020.01016.69
7.2.70.0100.00316.61
7.2.60.0080.00716.82
7.2.50.0100.00716.57
7.2.40.0120.00316.83
7.2.30.0060.00816.85
7.2.20.0060.00716.61
7.2.10.0060.00816.71
7.2.00.0030.00916.80
7.1.330.0040.01115.62
7.1.320.0060.00615.87
7.1.310.0090.00916.10
7.1.300.0030.01115.68
7.1.290.0070.00715.89
7.1.280.0090.00015.68
7.1.270.0030.00715.46
7.1.260.0060.01215.80
7.1.250.0110.00415.61
7.1.240.0070.00315.91
7.1.230.0060.00615.74
7.1.220.0050.01015.59
7.1.210.0070.00415.68
7.1.200.0060.00715.76
7.1.190.0050.00815.65
7.1.180.0060.00615.83
7.1.170.0070.00515.58
7.1.160.0040.00815.64
7.1.150.0050.00715.63
7.1.140.0070.00515.74
7.1.130.0060.00815.53
7.1.120.0060.00415.63
7.1.110.0070.00715.78
7.1.100.0060.00615.68
7.1.90.0070.00715.68
7.1.80.0090.00315.50
7.1.70.0080.00215.66
7.1.60.0190.00224.83
7.1.50.0130.00924.73
7.1.40.0130.00824.57
7.1.30.0150.00824.39
7.1.20.0160.00724.69
7.1.10.0050.00515.74
7.1.00.0040.00815.62
7.0.330.0040.00415.51
5.6.380.0090.00314.53

preferences:
76.21 ms | 401 KiB | 5 Q