3v4l.org

run code in 300+ PHP versions simultaneously
<?php $isUserAuthorized = true; $siteAddress = 'sute.ru/'; class a { function getSources(){ return array('1'); } function getLink(){ return 'link'; } function getTitle(){ return 'title'; } } $art = new a; if ($isUserAuthorized && $art->getSources()|count > 0){ $color = "#999999"; } else { $color = ""; } $link = "<a href='{$siteAddress}{$art->getLink()}' style='color: $color'>{$art->getTitle()}</a>"; echo $link;

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.4.20.0090.01217.75
8.4.10.0060.00317.85
8.3.150.0060.01320.46
8.3.140.0030.01516.72
8.3.130.0110.00718.55
8.3.120.0040.01219.09
8.3.110.0080.00020.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0060.00316.50
8.3.70.0130.00716.50
8.3.60.0090.00616.75
8.3.50.0130.00423.00
8.3.40.0070.00718.63
8.3.30.0110.01118.89
8.3.20.0070.00021.85
8.3.10.0040.00421.95
8.3.00.0060.00317.97
8.2.270.0100.01017.32
8.2.260.0110.00720.23
8.2.250.0080.00017.06
8.2.240.0100.01017.17
8.2.230.0060.00322.58
8.2.220.0030.00637.54
8.2.210.0080.00026.77
8.2.200.0060.00316.75
8.2.190.0100.00718.42
8.2.180.0070.00718.31
8.2.170.0060.01222.96
8.2.160.0100.00322.20
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0080.00022.21
8.2.120.0080.00026.35
8.2.110.0100.00021.13
8.2.100.0060.00617.78
8.2.90.0030.00519.09
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0080.00018.03
8.2.50.0030.00618.10
8.2.40.0000.00722.15
8.2.30.0040.00420.91
8.2.20.0040.00417.82
8.2.10.0000.00718.23
8.2.00.0030.00618.17
8.1.310.0000.00816.63
8.1.300.0030.00616.76
8.1.290.0040.00418.88
8.1.280.0070.00725.92
8.1.270.0050.00223.82
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0040.00421.14
8.1.230.0080.00417.52
8.1.220.0000.00817.78
8.1.210.0000.00818.77
8.1.200.0000.00917.38
8.1.190.0030.00617.35
8.1.180.0030.00718.10
8.1.170.0000.00918.59
8.1.160.0000.00722.14
8.1.150.0040.00418.89
8.1.140.0000.00719.58
8.1.130.0030.00317.80
8.1.120.0000.00717.36
8.1.110.0000.00717.48
8.1.100.0000.00717.43
8.1.90.0000.00717.45
8.1.80.0030.00317.48
8.1.70.0070.00017.39
8.1.60.0060.00317.59
8.1.50.0050.00317.38
8.1.40.0040.00417.42
8.1.30.0000.00817.55
8.1.20.0030.00517.49
8.1.10.0070.00017.51
8.1.00.0030.00617.37
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0050.00318.32
8.0.270.0030.00317.18
8.0.260.0060.00017.18
8.0.250.0000.00717.07
8.0.240.0030.00616.97
8.0.230.0060.00317.08
8.0.220.0000.00716.88
8.0.210.0070.00016.94
8.0.200.0030.00317.04
8.0.190.0000.00817.04
8.0.180.0000.00716.98
8.0.170.0050.00317.00
8.0.160.0070.00016.88
8.0.150.0040.00316.80
8.0.140.0000.00716.93
8.0.130.0080.00013.36
8.0.120.0030.00616.92
8.0.110.0000.00716.90
8.0.100.0040.00416.98
8.0.90.0050.00216.79
8.0.80.0060.00917.00
8.0.70.0070.00016.77
8.0.60.0040.00416.87
8.0.50.0040.00416.91
8.0.30.0080.01016.94
8.0.20.0110.01117.40
8.0.10.0040.00416.97
8.0.00.0070.01016.74
7.4.330.0000.00515.08
7.4.320.0000.00616.50
7.4.300.0000.00716.52
7.4.290.0040.00416.59
7.4.280.0070.00316.59
7.4.270.0000.00716.63
7.4.260.0030.00316.41
7.4.250.0040.00416.58
7.4.240.0040.00416.44
7.4.230.0030.00316.54
7.4.220.0110.01016.60
7.4.210.0030.01316.69
7.4.200.0000.00716.40
7.4.160.0080.00816.42
7.4.150.0150.00417.40
7.4.140.0140.00517.86
7.4.130.0140.00516.46
7.4.120.0100.01116.50
7.4.110.0120.00616.59
7.4.100.0040.01916.46
7.4.90.0090.01616.50
7.4.80.0130.00319.39
7.4.70.0160.00016.50
7.4.60.0160.00716.52
7.4.50.0040.01116.33
7.4.40.0100.01316.27
7.4.30.0070.01316.51
7.4.00.0060.00915.08
7.3.330.0000.00613.28
7.3.320.0000.00513.45
7.3.310.0020.00516.29
7.3.300.0040.00416.38
7.3.290.0050.00916.40
7.3.280.0090.01016.41
7.3.270.0100.00717.40
7.3.260.0080.01016.43
7.3.250.0060.01216.47
7.3.240.0130.00616.38
7.3.230.0130.00416.39
7.3.210.0100.00616.46
7.3.200.0120.00316.72
7.3.190.0000.01516.59
7.3.180.0100.01116.38
7.3.170.0160.00316.48
7.3.160.0100.00716.43
7.3.10.0040.01116.63
7.3.00.0030.01016.31
7.2.330.0090.00916.65
7.2.320.0130.00716.63
7.2.310.0080.01216.70
7.2.300.0110.00616.63
7.2.290.0160.00316.79
7.2.130.0090.00016.62
7.2.120.0190.00316.82
7.2.110.0060.00716.84
7.2.100.0110.00716.70
7.2.90.0040.01116.98
7.2.80.0210.00016.96
7.2.70.0090.00316.92
7.2.60.0020.01216.91
7.2.50.0160.00816.89
7.2.40.0090.00916.95
7.2.30.0040.00716.85
7.2.20.0070.00716.68
7.2.10.0030.01316.81
7.2.00.0060.00618.11
7.1.250.0050.00815.75
7.1.200.0100.00315.56
7.1.100.0000.01217.93
7.1.70.0030.00617.27
7.1.60.0080.00419.75
7.1.50.0070.01516.98
7.1.00.0000.08022.33
7.0.200.0150.00314.98
7.0.90.0570.05319.99
7.0.80.0400.05319.94
7.0.70.0270.07319.98
7.0.60.0330.06319.97
7.0.50.0500.05320.39
7.0.40.0330.08020.37
7.0.30.0330.05720.21
7.0.20.0330.07720.33
7.0.10.0330.06020.34
7.0.00.0430.06720.35
5.6.240.0170.06320.71
5.6.230.0100.06020.67
5.6.220.0130.05720.65
5.6.210.0130.05720.56
5.6.200.0100.06721.13
5.6.190.0070.06021.09
5.6.180.0170.05721.09
5.6.170.0230.04321.09
5.6.160.0170.05021.10
5.6.150.0070.06021.09
5.6.140.0070.06021.08
5.6.130.0030.07021.01
5.6.120.0100.06021.08
5.6.110.0130.06021.08
5.6.100.0130.05721.13
5.6.90.0100.07321.07
5.6.80.0200.05020.52
5.6.70.0030.06320.45
5.6.60.0100.05720.45
5.6.50.0070.06320.46
5.6.40.0100.06020.42
5.6.30.0100.05320.42
5.6.20.0100.05720.44
5.6.10.0070.05720.34
5.6.00.0170.05320.43

preferences:
71.54 ms | 403 KiB | 5 Q