3v4l.org

run code in 300+ PHP versions simultaneously
<?php $links = array ( 0 => array ( 'rel' => 'advertisements', 'href' => 'https://api.teamsnap.com/v3/advertisements' ), 1 => array ( 'rel' => 'active_season_team', 'href' => 'https://api.teamsnap.com/v3/teams' ), 2 => array ( 'rel' => 'assignments', 'href' => 'https://api.teamsnap.com/v3/assignments' ), 3 => array ( 'rel' => 'availabilities', 'href' => 'https://api.teamsnap.com/v3/availabilities' ) ); function get_link($links, $cat) { if(($key = array_search($cat, array_column($links, 'rel'))) !== false) { return $links[$key]['href']; } else { return ''; } } echo get_link($links, 'active_season_team');

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.130.0080.00917.51
8.4.120.0160.00420.72
8.4.110.0120.00918.74
8.4.100.0110.00617.76
8.4.90.0130.00922.44
8.4.80.0090.00719.36
8.4.70.0050.00318.06
8.4.60.0110.01018.93
8.4.50.0050.00418.69
8.4.40.0050.01420.29
8.4.30.0040.01520.55
8.4.20.0100.01019.49
8.4.10.0090.00619.32
8.3.260.0110.00816.23
8.3.250.0100.00618.85
8.3.240.0130.00616.56
8.3.230.0060.01016.50
8.3.220.0100.00919.09
8.3.210.0130.00618.24
8.3.200.0010.00816.50
8.3.190.0090.00919.22
8.3.180.0090.01018.38
8.3.170.0120.00617.34
8.3.160.0120.00620.01
8.3.150.0120.00617.01
8.3.140.0060.01217.04
8.3.130.0050.00318.57
8.3.120.0080.00019.11
8.3.110.0110.00020.94
8.3.100.0000.00924.06
8.3.90.0000.00826.77
8.3.80.0060.00316.75
8.3.70.0110.01118.24
8.3.60.0040.01118.43
8.3.50.0090.00423.69
8.3.40.0110.00418.98
8.3.30.0090.00918.88
8.3.20.0050.00320.85
8.3.10.0000.00820.09
8.3.00.0070.00020.61
8.2.290.0130.00620.59
8.2.280.0100.00818.41
8.2.270.0130.00617.04
8.2.260.0070.01119.02
8.2.250.0050.00316.91
8.2.240.0120.00320.79
8.2.230.0090.00622.58
8.2.220.0000.01137.54
8.2.210.0090.00626.77
8.2.200.0060.00316.63
8.2.190.0110.00716.75
8.2.180.0130.00618.54
8.2.170.0110.00322.96
8.2.160.0040.01120.57
8.2.150.0060.00324.18
8.2.140.0090.00924.66
8.2.130.0000.00726.16
8.2.120.0040.00426.16
8.2.110.0030.00620.52
8.2.100.0090.00317.91
8.2.90.0000.00818.03
8.2.80.0090.00022.21
8.2.70.0040.00417.75
8.2.60.0040.00418.05
8.2.50.0080.00018.05
8.2.40.0060.00317.63
8.2.30.0050.00317.70
8.2.20.0030.00518.01
8.2.10.0040.00419.32
8.2.00.0000.00719.38
8.1.330.0100.00821.96
8.1.320.0120.00716.31
8.1.310.0100.00718.34
8.1.300.0040.00417.92
8.1.290.0000.00930.84
8.1.280.0120.00325.92
8.1.270.0000.00823.96
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00620.72
8.1.230.0030.00722.13
8.1.220.0090.00017.74
8.1.210.0030.00718.77
8.1.200.0080.00017.23
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0080.00017.62
8.1.160.0050.00319.07
8.1.150.0040.00418.79
8.1.140.0000.00722.21
8.1.130.0000.00720.05
8.1.120.0050.00317.42
8.1.110.0050.00317.30
8.1.100.0030.00717.29
8.1.90.0050.00217.29
8.1.80.0040.00417.47
8.1.70.0000.01017.30
8.1.60.0000.00817.61
8.1.50.0030.00517.54
8.1.40.0040.00417.46
8.1.30.0060.00317.50
8.1.20.0050.00317.73
8.1.10.0030.00517.65
8.1.00.0000.00717.51
8.0.300.0040.00419.94
8.0.290.0090.00016.75
8.0.280.0000.00718.63
8.0.270.0030.00318.06
8.0.260.0040.00419.98
8.0.250.0030.00316.87
8.0.240.0070.00016.86
8.0.230.0030.00316.91
8.0.220.0070.00016.81
8.0.210.0030.00316.82
8.0.200.0060.00016.91
8.0.190.0000.00716.92
8.0.180.0040.00416.84
8.0.170.0060.00316.82
8.0.160.0050.00216.82
8.0.150.0040.00416.75
8.0.140.0040.00416.77
8.0.130.0000.00513.28
8.0.120.0000.00816.71
8.0.110.0030.00516.72
8.0.100.0040.00416.90
8.0.90.0040.00416.68
8.0.80.0090.00616.81
8.0.70.0040.00416.69
8.0.60.0080.00016.67
8.0.50.0050.00216.65
8.0.30.0090.01216.83
8.0.20.0110.00817.42
8.0.10.0040.00416.96
8.0.00.0070.01116.88
7.4.330.0050.00015.55
7.4.320.0000.00616.42
7.4.300.0060.00016.66
7.4.290.0040.00416.52
7.4.280.0000.00716.63
7.4.270.0030.00316.64
7.4.260.0000.00613.33
7.4.250.0030.00316.48
7.4.240.0030.00416.52
7.4.230.0030.00316.52
7.4.220.0020.00516.52
7.4.210.0050.01216.44
7.4.200.0030.00316.62
7.4.130.0110.00916.58
7.4.120.0090.01216.76
7.4.110.0120.01216.66
7.4.100.0160.00616.53
7.4.90.0060.00916.61
7.4.80.0100.00719.39
7.4.70.0040.01616.58
7.4.60.0060.01616.40
7.4.50.0040.01216.34
7.4.40.0130.00916.60
7.4.00.0090.00514.96
7.3.330.0000.00716.37
7.3.320.0060.00013.32
7.3.310.0000.00716.20
7.3.300.0040.00416.19
7.3.290.0110.00616.30
7.3.280.0100.00316.35
7.3.260.0100.01016.46
7.3.240.0090.00716.36
7.3.230.0100.00716.57
7.3.210.0130.00416.49
7.3.200.0040.01916.16
7.3.190.0000.01416.56
7.3.180.0150.00016.28
7.3.170.0090.00916.41
7.3.160.0040.01216.52
7.3.120.0100.00814.36
7.3.110.0180.00614.16
7.3.100.0150.01214.80
7.3.90.0110.00814.92
7.3.80.0170.00014.18
7.3.70.0000.00014.03
7.3.60.0070.01314.32
7.3.50.0490.01614.20
7.3.40.0100.01014.18
7.3.30.0070.01114.61
7.3.20.0220.00014.66
7.3.10.0610.01014.46
7.3.00.0090.01114.55
7.2.330.0110.00616.60
7.2.320.0060.01616.70
7.2.310.0150.00316.77
7.2.300.0100.01416.85
7.2.290.0110.00616.85
7.2.250.0140.00714.78
7.2.240.0100.01014.57
7.2.230.0100.01514.59
7.2.220.0140.00715.19
7.2.210.0040.01614.38
7.2.200.0120.00714.95
7.2.190.0160.00514.58
7.2.180.0170.00514.55
7.2.170.0110.00914.53
7.1.330.0170.00614.05
7.1.320.0130.00313.81
7.1.310.0080.01113.71
7.1.300.0050.01313.51
7.1.290.0150.00713.72
7.1.280.0060.01113.59
7.1.270.0120.00913.64
7.1.260.0150.00314.06

preferences:
30.03 ms | 403 KiB | 5 Q