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.40.0090.00618.82
8.3.30.0110.00418.84
8.3.20.0040.00419.34
8.3.10.0080.00021.87
8.3.00.0030.00520.72
8.2.170.0110.00422.96
8.2.160.0100.01018.89
8.2.150.0070.00024.18
8.2.140.0080.00424.66
8.2.130.0080.00017.91
8.2.120.0070.00026.35
8.2.110.0040.00420.48
8.2.100.0040.00817.72
8.2.90.0040.00417.61
8.2.80.0040.00417.97
8.2.70.0050.00317.77
8.2.60.0080.00017.82
8.2.50.0000.00818.10
8.2.40.0040.00419.17
8.2.30.0040.00419.31
8.2.20.0000.00718.07
8.2.10.0070.00017.99
8.2.00.0050.00517.74
8.1.270.0030.00518.79
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0030.00622.09
8.1.230.0080.00317.83
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0000.00817.23
8.1.190.0000.00817.25
8.1.180.0000.00818.10
8.1.170.0040.00418.52
8.1.160.0000.00818.88
8.1.150.0030.00518.79
8.1.140.0000.00722.15
8.1.130.0030.00620.19
8.1.120.0040.00417.41
8.1.110.0050.00217.45
8.1.100.0040.00417.34
8.1.90.0000.00717.38
8.1.80.0050.00317.38
8.1.70.0030.00317.40
8.1.60.0030.00617.50
8.1.50.0030.00517.49
8.1.40.0080.00017.43
8.1.30.0040.00417.64
8.1.20.0000.00717.67
8.1.10.0000.00717.57
8.1.00.0050.00317.51
8.0.300.0000.00818.77
8.0.290.0080.00016.75
8.0.280.0030.00518.40
8.0.270.0000.00717.08
8.0.260.0040.00418.41
8.0.250.0030.00316.95
8.0.240.0000.00716.86
8.0.230.0030.00616.88
8.0.220.0080.00016.87
8.0.210.0040.00416.91
8.0.200.0000.00716.81
8.0.190.0030.00516.86
8.0.180.0040.00416.84
8.0.170.0060.00316.89
8.0.160.0070.00016.91
8.0.150.0040.00416.88
8.0.140.0030.00316.81
8.0.130.0050.00013.35
8.0.120.0050.00316.88
8.0.110.0000.00716.88
8.0.100.0000.00716.80
8.0.90.0040.00416.79
8.0.80.0060.00916.95
8.0.70.0070.00016.79
8.0.60.0070.00016.78
8.0.50.0040.00416.88
8.0.30.0120.00916.99
8.0.20.0210.01317.40
8.0.10.0040.00416.93
8.0.00.0050.01416.76
7.4.330.0000.00515.55
7.4.320.0030.00316.56
7.4.300.0030.00316.46
7.4.290.0000.00716.59
7.4.280.0060.00316.65
7.4.270.0070.00016.61
7.4.260.0030.00316.40
7.4.250.0080.00016.60
7.4.240.0000.00716.45
7.4.230.0000.00616.62
7.4.220.0050.00316.59
7.4.210.0080.00716.58
7.4.200.0040.00416.66
7.4.160.0060.01116.58
7.4.140.0130.00817.86
7.4.130.0030.01516.57
7.4.120.0100.00916.53
7.4.110.0160.00316.51
7.4.100.0090.00916.47
7.4.90.0170.00416.60
7.4.80.0100.00619.39
7.4.70.0170.00016.32
7.4.60.0100.00716.67
7.4.50.0030.01216.52
7.4.40.0150.00716.53
7.4.10.0060.01314.75
7.4.00.0080.00915.01
7.3.330.0050.00013.42
7.3.320.0030.00313.51
7.3.310.0060.00316.49
7.3.300.0060.00016.41
7.3.290.0000.00716.32
7.3.280.0110.00816.45
7.3.260.0110.00916.45
7.3.240.0090.01016.50
7.3.230.0030.01416.57
7.3.210.0100.00716.54
7.3.200.0110.01116.61
7.3.190.0170.00016.59
7.3.180.0050.01016.50
7.3.170.0100.00716.46
7.3.160.0110.00816.49
7.3.130.0060.01015.01
7.3.120.0080.00914.86
7.3.110.0100.00814.65
7.3.100.0070.01014.79
7.3.90.0060.00914.90
7.3.80.0060.00714.98
7.3.70.0060.00614.80
7.3.60.0030.01114.92
7.3.50.0120.00414.68
7.3.40.0070.00614.85
7.3.30.0020.01114.82
7.3.20.0070.00416.49
7.3.10.0050.00816.63
7.3.00.0020.01116.71
7.2.330.0100.01416.46
7.2.320.0090.01216.50
7.2.310.0060.01016.75
7.2.300.0040.01216.67
7.2.290.0070.01116.80
7.2.260.0100.00714.83
7.2.250.0040.01515.08
7.2.240.0030.01414.93
7.2.230.0060.00814.89
7.2.220.0060.01014.97
7.2.210.0040.00814.90
7.2.200.0070.00414.94
7.2.190.0060.00814.90
7.2.180.0090.00615.00
7.2.170.0080.00514.95
7.2.160.0090.00714.93
7.2.150.0040.00616.79
7.2.140.0110.00216.88
7.2.130.0050.01016.86
7.2.120.0080.00616.63
7.2.110.0050.00816.76
7.2.100.0050.01016.69
7.2.90.0070.00716.85
7.2.80.0080.00716.72
7.2.70.0070.00916.56
7.2.60.0050.01116.61
7.2.50.0090.00716.85
7.2.40.0080.00616.92
7.2.30.0090.00716.87
7.2.20.0100.00516.75
7.2.10.0090.00416.76
7.2.00.0060.00716.79
7.1.330.0050.01115.76
7.1.320.0070.00615.79
7.1.310.0050.00515.79
7.1.300.0100.00415.63
7.1.290.0090.00315.51
7.1.280.0090.00915.60
7.1.270.0090.00315.61
7.1.260.0070.00815.79
7.1.250.0110.00515.67
7.1.240.0080.00315.66
7.1.230.0050.00715.62
7.1.220.0090.00615.74
7.1.210.0060.00815.73
7.1.200.0040.00915.71
7.1.190.0070.00615.75
7.1.180.0070.00715.58
7.1.170.0060.01015.72
7.1.160.0060.00815.61
7.1.150.0060.00815.42
7.1.140.0050.00715.72
7.1.130.0070.00515.75
7.1.120.0060.00815.60
7.1.110.0030.01215.61
7.1.100.0060.00715.72
7.1.90.0100.00315.54
7.1.80.0060.00815.63
7.1.70.0070.00615.62
7.1.60.0110.01021.49
7.1.50.0110.00821.67
7.1.40.0170.00621.77
7.1.30.0100.01021.57
7.1.20.0120.00821.52
7.1.10.0080.00315.73
7.1.00.0050.01015.78
7.0.330.0020.01215.29
7.0.320.0050.01015.33
7.0.310.0040.00815.42
7.0.300.0030.00915.35
7.0.290.0020.01115.48
7.0.280.0030.00715.42
7.0.270.0070.00815.20
7.0.260.0050.01115.40
7.0.250.0020.01015.47
7.0.240.0050.00615.28
7.0.230.0060.00815.48
7.0.220.0020.01015.27
7.0.210.0050.00915.28
7.0.200.0050.00715.40
7.0.190.0050.00615.35
7.0.180.0050.00915.24
7.0.170.0070.00715.25
7.0.160.0060.00715.33
7.0.150.0050.00615.35
7.0.140.0100.00715.29
7.0.130.0080.00415.57
7.0.120.0040.00515.46
7.0.110.0010.00915.36
7.0.100.0030.00915.42
7.0.90.0030.01015.50
7.0.80.0080.00515.41
7.0.70.0060.00715.53
7.0.60.0050.00815.59
7.0.50.0000.01115.26
7.0.40.0040.00713.54
7.0.30.0100.00513.45
7.0.20.0060.00413.57
7.0.10.0050.00713.40
7.0.00.0050.00713.33
5.6.400.0120.00214.48
5.6.390.0050.00714.37
5.6.380.0060.00914.30
5.6.370.0070.00714.17
5.6.360.0060.00714.52
5.6.350.0080.00714.24
5.6.340.0050.00714.23
5.6.330.0060.00514.23
5.6.320.0030.01014.49
5.6.310.0080.00814.60
5.6.300.0050.01014.30
5.6.290.0080.00814.25
5.6.280.0070.00514.27
5.6.270.0060.00614.48
5.6.260.0020.01314.32
5.6.250.0100.00314.23
5.6.240.0050.00614.29
5.6.230.0050.00814.26
5.6.220.0080.00314.11
5.6.210.0050.00814.33
5.6.200.0060.00614.30
5.6.190.0060.00714.23
5.6.180.0100.00314.17
5.6.170.0080.00514.15
5.6.160.0050.00514.07
5.6.150.0070.00514.05
5.6.140.0090.00414.39
5.6.130.0070.00814.31
5.6.120.0050.00714.21
5.6.110.0030.01114.44
5.6.100.0050.00714.31
5.6.90.0070.00514.13
5.6.80.0060.00614.13
5.6.70.0070.00814.12
5.6.60.0040.01114.31
5.6.50.0020.01214.10
5.6.40.0080.00414.10
5.6.30.0030.01014.47
5.6.20.0000.00914.25
5.6.10.0070.00514.34
5.6.00.0030.00814.22

preferences:
55.09 ms | 400 KiB | 5 Q