3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = new stdClass(); $result->id = 333; $result->title = 'title text'; echo <<<HTML <a href="index.php?option=com_rbids&task=viewbids&id={<?php echo $id; ?>}">$result->title . </a> HTML; // Notice that $id isn't a declared variable. If it was, it would be rendered but all characters between the curly braces are treated literally because you are trying to echo within an echo echo "\n---\n"; // without heredoc syntax (which can be funny about tabbing depending on php version): echo "<a href=\"index.php?option=com_rbids&task=viewbids&id={$result->id}\">{$result->title} . </a>"; // curly braces may help IDEs with highlighting

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.5.10.0100.00716.66
8.5.00.0130.00820.04
8.4.150.0020.00014.05
8.4.140.0160.00717.66
8.4.130.0110.01017.98
8.4.120.0130.00720.71
8.4.110.0130.00718.75
8.4.100.0120.00917.73
8.4.90.0100.00917.66
8.4.80.0130.00722.47
8.4.70.0070.01317.81
8.4.60.0160.00518.65
8.4.50.0140.00720.74
8.4.40.0090.01020.35
8.4.30.0110.00817.56
8.4.20.0110.01120.13
8.4.10.0060.00317.74
8.3.280.0130.00818.34
8.3.270.0280.00716.70
8.3.260.0070.00816.54
8.3.250.0120.00818.96
8.3.240.0140.00516.51
8.3.230.0090.01016.66
8.3.220.0100.00717.01
8.3.210.0150.00416.79
8.3.200.0050.00416.67
8.3.190.0050.00417.07
8.3.180.0120.00717.29
8.3.170.0150.00320.53
8.3.160.0040.01117.11
8.3.150.0050.00317.20
8.3.140.0080.00017.23
8.3.130.0060.00318.48
8.3.120.0090.00018.94
8.3.110.0060.00920.94
8.3.100.0090.00016.85
8.3.90.0060.00926.77
8.3.80.0030.00616.75
8.3.70.0070.01116.75
8.3.60.0090.00918.43
8.3.50.0090.01117.51
8.3.40.0120.00318.82
8.3.30.0070.01418.88
8.3.20.0070.00020.79
8.3.10.0080.00021.91
8.3.00.0040.00423.70
8.2.290.0070.00820.38
8.2.280.0100.00618.67
8.2.270.0120.00618.99
8.2.260.0160.00318.65
8.2.250.0030.00618.38
8.2.240.0080.00317.21
8.2.230.0030.00522.58
8.2.220.0000.00924.06
8.2.210.0080.00026.77
8.2.200.0090.00018.29
8.2.190.0110.00716.75
8.2.180.0070.01316.88
8.2.170.0110.00422.96
8.2.160.0140.00020.55
8.2.150.0030.00624.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00420.97
8.2.110.0100.00019.27
8.2.100.0090.00318.02
8.2.90.0050.00319.63
8.2.80.0090.00017.97
8.2.70.0030.00617.93
8.2.60.0000.00718.03
8.2.50.0050.00318.10
8.2.40.0030.00619.29
8.2.30.0040.00419.31
8.2.20.0040.00418.07
8.2.10.0050.00219.14
8.2.00.0040.00418.03
8.1.330.0110.00816.51
8.1.320.0110.00916.26
8.1.310.0080.00016.78
8.1.300.0040.00418.51
8.1.290.0060.00630.84
8.1.280.0180.00325.92
8.1.270.0040.00418.96
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00319.15
8.1.230.0100.00022.81
8.1.220.0040.00417.74
8.1.210.0070.00318.95
8.1.200.0060.00317.35
8.1.190.0060.00317.25
8.1.180.0050.00318.10
8.1.170.0060.00318.56
8.1.160.0030.00618.83
8.1.150.0050.00318.75
8.1.140.0050.00218.71
8.1.130.0000.00720.14
8.1.120.0030.00317.39
8.1.110.0040.00417.46
8.1.100.0070.00017.43
8.1.90.0040.00417.39
8.1.80.0000.00817.38
8.1.70.0040.00417.29
8.1.60.0060.00317.44
8.1.50.0030.00617.52
8.1.40.0000.00917.43
8.1.30.0050.00217.54
8.1.20.0000.00917.53
8.1.10.0000.00717.52
8.1.00.0000.00817.48
8.0.300.0040.00419.72
8.0.290.0050.00316.75
8.0.280.0000.00718.41
8.0.270.0000.00717.15
8.0.260.0030.00318.37
8.0.250.0040.00417.04
8.0.240.0030.00317.02
8.0.230.0030.00317.05
8.0.220.0000.00716.82
8.0.210.0070.00016.96
8.0.200.0060.00317.06
8.0.190.0030.00616.93
8.0.180.0000.00717.00
8.0.170.0060.00317.00
8.0.160.0040.00417.05
8.0.150.0040.00416.98
8.0.140.0000.00716.96
8.0.130.0050.00013.41
8.0.120.0040.00416.96
8.0.110.0000.00816.91
8.0.100.0000.00816.78
8.0.90.0050.00316.86
8.0.80.0100.00616.97
8.0.70.0040.00417.07
8.0.60.0080.00016.74
8.0.50.0000.00716.98
8.0.30.0100.00917.13
8.0.20.0100.01017.40
8.0.10.0040.00416.86
8.0.00.0130.00916.80
7.4.330.0050.00015.55
7.4.320.0030.00316.42
7.4.300.0070.00016.50
7.4.290.0000.00716.43
7.4.280.0050.00316.52
7.4.270.0000.00716.47
7.4.260.0040.00416.52
7.4.250.0000.00716.50
7.4.240.0030.00316.37
7.4.230.0080.00016.33
7.4.220.0000.00716.29
7.4.210.0070.00816.53
7.4.200.0000.00716.65
7.4.160.0070.00816.57
7.4.140.0100.01117.86
7.4.130.0070.01616.54
7.4.120.0190.00616.72
7.4.110.0100.01316.55
7.4.100.0170.00316.39
7.4.90.0030.01316.51
7.4.80.0090.01319.39
7.4.70.0120.01116.52
7.4.60.0140.00616.53
7.4.50.0060.00916.35
7.4.40.0100.00716.48
7.4.00.0030.01414.96
7.3.330.0000.00513.25
7.3.320.0000.00513.16
7.3.310.0030.00316.15
7.3.300.0050.00316.22
7.3.290.0000.00716.37
7.3.280.0120.00416.30
7.3.260.0090.00916.40
7.3.240.0110.00916.44
7.3.230.0070.01016.56
7.3.210.0040.01816.32
7.3.200.0070.01316.57
7.3.190.0100.00716.57
7.3.180.0080.01516.38
7.3.170.0140.00916.70
7.3.160.0080.00816.52
7.3.120.0100.01014.79
7.3.110.0090.00914.76
7.3.100.0070.01014.99
7.3.90.0100.00714.64
7.3.80.0040.00414.86
7.3.70.0040.00814.95
7.3.60.0060.01014.67
7.3.50.0030.01314.92
7.3.40.0100.00314.61
7.3.30.0040.01214.89
7.3.20.0050.00516.58
7.3.10.0480.01215.62
7.3.00.0580.00815.83
7.2.330.0120.00616.69
7.2.320.0120.00616.80
7.2.310.0110.00516.32
7.2.300.0090.00916.55
7.2.290.0170.00916.78
7.2.250.0130.00715.12
7.2.240.0070.01414.86
7.2.230.0080.00815.35
7.2.220.0060.00814.88
7.2.210.0070.01115.16
7.2.200.0100.00315.29
7.2.190.0030.00614.85
7.2.180.0030.01015.02
7.2.170.0100.00315.00
7.2.130.1300.00014.98
7.2.120.1220.00715.16
7.2.110.0730.01315.16
7.2.100.0920.00915.01
7.2.90.0640.00715.02
7.2.80.0650.01215.14
7.2.70.0780.00714.80
7.2.60.0970.00315.23
7.2.50.0620.00615.03
7.2.40.0680.00614.88
7.2.30.0630.01614.88
7.2.20.0890.01314.88
7.2.10.0970.00015.12
7.2.00.0880.01015.02
7.1.330.0130.00315.39
7.1.320.0090.00615.55
7.1.310.0060.00316.02
7.1.300.0090.00615.46
7.1.290.0000.01415.68
7.1.280.0080.00315.74
7.1.270.0100.00015.38
7.1.260.0100.00715.69
7.1.250.0670.00714.03

preferences:
35.43 ms | 403 KiB | 5 Q