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') ; ?> <li<?php if (! has_post_thumbnail() ) { echo ' class="no-img"'; } ?>> <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?> <h3> <a href="<?php the_permalink(); ?>" style=" background:transparent; background-image:url(''); color:<?php $key_values2 = get_post_custom_values( 'hlwhite' ); foreach ( $key_values2 as $key => $value2 ) {echo "$value2";} ?>; display:block;"> <?php the_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.0090.00616.50
8.3.60.0090.00916.63
8.3.50.0120.00718.23
8.3.40.0120.00318.89
8.3.30.0040.01118.84
8.3.20.0080.00019.16
8.3.10.0000.00821.88
8.3.00.0080.00020.68
8.2.190.0060.01316.89
8.2.180.0130.01018.26
8.2.170.0110.00422.96
8.2.160.0080.00620.81
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0040.00418.72
8.2.110.0040.00419.17
8.2.100.0060.00617.84
8.2.90.0080.00018.03
8.2.80.0090.00017.97
8.2.70.0000.00818.03
8.2.60.0040.00418.03
8.2.50.0000.00818.10
8.2.40.0060.00319.52
8.2.30.0030.00519.28
8.2.20.0050.00318.14
8.2.10.0000.00718.25
8.2.00.0070.00317.72
8.1.280.0110.00425.92
8.1.270.0080.00018.86
8.1.260.0100.01026.35
8.1.250.0050.00328.09
8.1.240.0000.01417.33
8.1.230.0110.00020.96
8.1.220.0000.00817.74
8.1.210.0040.00418.90
8.1.200.0040.00417.35
8.1.190.0050.00317.35
8.1.180.0080.00018.10
8.1.170.0040.00418.61
8.1.160.0040.00418.85
8.1.150.0000.00819.01
8.1.140.0040.00422.16
8.1.130.0100.00020.21
8.1.120.0070.00017.39
8.1.110.0040.00417.50
8.1.100.0050.00217.50
8.1.90.0000.00817.45
8.1.80.0030.00517.53
8.1.70.0030.00517.52
8.1.60.0000.00817.50
8.1.50.0000.00917.58
8.1.40.0060.00317.49
8.1.30.0030.00517.55
8.1.20.0000.00717.67
8.1.10.0030.00617.56
8.1.00.0000.00817.42
8.0.300.0040.00419.64
8.0.290.0030.00616.75
8.0.280.0050.00218.44
8.0.270.0040.00417.21
8.0.260.0000.00618.48
8.0.250.0000.00716.98
8.0.240.0030.00317.07
8.0.230.0000.00716.94
8.0.220.0060.00316.88
8.0.210.0000.00716.97
8.0.200.0030.00316.93
8.0.190.0070.00016.94
8.0.180.0110.00017.01
8.0.170.0040.00416.99
8.0.160.0040.00416.90
8.0.150.0000.00716.84
8.0.140.0040.00316.90
8.0.130.0060.00013.36
8.0.120.0060.00316.95
8.0.110.0000.00816.97
8.0.100.0040.00417.01
8.0.90.0050.00216.86
8.0.80.0100.00416.93
8.0.70.0030.00517.03
8.0.60.0000.00716.94
8.0.50.0040.00417.03
8.0.30.0060.01117.15
8.0.20.0140.00917.42
8.0.10.0030.00516.99
8.0.00.0070.01216.76
7.4.330.0050.00015.55
7.4.320.0030.00316.52
7.4.300.0000.00616.53
7.4.290.0000.00716.63
7.4.280.0050.00516.62
7.4.270.0070.00016.62
7.4.260.0000.00716.51
7.4.250.0040.00416.51
7.4.240.0000.00816.61
7.4.230.0040.00216.53
7.4.220.0070.00016.44
7.4.210.0080.00816.54
7.4.200.0070.00016.45
7.4.160.0090.00716.58
7.4.140.0090.01017.86
7.4.130.0100.01316.46
7.4.120.0110.00916.64
7.4.110.0090.01516.53
7.4.100.0060.01116.48
7.4.90.0060.01116.61
7.4.80.0030.01419.39
7.4.70.0070.01016.69
7.4.60.0100.00716.45
7.4.50.0100.00316.56
7.4.40.0130.00316.71
7.4.00.0080.00814.95
7.3.330.0000.00513.32
7.3.320.0000.00513.17
7.3.310.0040.00416.30
7.3.300.0030.00316.39
7.3.290.0000.00716.32
7.3.280.0130.00516.31
7.3.260.0110.00816.47
7.3.240.0070.01016.49
7.3.230.0110.00616.29
7.3.210.0110.00516.33
7.3.200.0080.00816.27
7.3.190.0110.00716.29
7.3.180.0070.01616.49
7.3.170.0110.00616.34
7.3.160.0080.01216.42
7.3.120.0150.00314.73
7.3.110.0110.00414.97
7.3.100.0030.01014.59
7.3.90.0070.00714.84
7.3.80.0030.01315.16
7.3.70.0000.01414.53
7.3.60.0060.00614.75
7.3.50.0030.01514.39
7.3.40.0000.01214.73
7.3.30.0120.00014.82
7.3.20.0000.01216.55
7.3.10.0060.00716.64
7.3.00.0040.01216.72
7.2.330.0120.00416.69
7.2.320.0130.01016.63
7.2.310.0060.01216.61
7.2.300.0080.00816.73
7.2.290.0070.01416.87
7.2.250.0110.00714.95
7.2.240.0070.01314.87
7.2.230.0030.01414.65
7.2.220.0110.00714.91
7.2.210.0100.00315.17
7.2.200.0090.00615.05
7.2.190.0030.01214.98
7.2.180.0030.01015.01
7.2.170.0000.01514.81
7.2.130.0070.01016.94
7.2.120.0000.00916.88
7.2.110.0100.00915.76
7.2.100.0160.00915.81
7.2.90.0190.00815.85
7.2.80.0170.01215.89
7.2.70.0250.00115.95
7.2.60.0200.00715.88
7.2.50.0200.00415.85
7.2.40.0150.01015.91
7.2.30.0120.00915.90
7.2.20.0180.00816.01
7.2.10.0210.00715.92
7.2.00.0170.00616.03
7.1.330.0030.01015.57
7.1.320.0080.00515.82
7.1.310.0100.00015.57
7.1.300.0100.00315.64
7.1.290.0030.00715.67
7.1.280.0060.00515.63
7.1.270.0070.00715.80
7.1.260.0040.01115.43
7.1.250.0060.01015.57
7.1.230.0200.00313.71
7.1.220.0180.00613.69
7.1.210.0300.00713.76
7.1.200.0240.01113.57
7.1.190.1650.00013.66
7.1.180.0100.01313.92
7.1.170.0220.01414.08
7.1.160.0190.00613.87
7.1.150.0180.00913.78
7.1.140.0210.00713.63
7.1.130.0200.00713.70
7.1.120.0290.00913.65
7.1.110.0290.00613.81
7.1.100.0480.00313.99
7.1.90.0210.00713.78
7.1.80.0240.00913.96
7.1.70.0220.00614.02
7.1.60.0390.00731.87
7.1.50.0370.00731.54
7.1.40.0560.00331.71
7.1.30.0300.01331.79
7.1.20.0540.00631.86
7.1.10.0160.00913.47
7.1.00.0150.00913.60
5.6.380.0120.00314.42

preferences:
39.56 ms | 401 KiB | 5 Q