3v4l.org

run code in 300+ PHP versions simultaneously
<?php $site = 1; $theAction = 'subscribe'; $mappings = array("1"=>"https://test1.com/?na=ajaxsub", "2"=>"https://test2.com/?na=ajaxsub", "3"=>"https://test3.com/?na=ajaxsub", "4"=>"https://test4.com/?na=ajaxsub"); $theAction == 'unsubscribe' ? $url = "https://test5.com/unsubscribe.php" : $url = $mappings[$site]; echo $url;

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.0110.00918.71
8.4.120.0070.01224.04
8.4.110.0040.00422.36
8.4.100.0120.00918.85
8.4.90.0110.00919.02
8.4.80.0130.00718.80
8.4.70.0090.00517.89
8.4.60.0120.00918.97
8.4.50.0110.00918.64
8.4.40.0070.00417.87
8.4.30.0070.00318.90
8.4.20.0030.01720.59
8.4.10.0060.00319.40
8.3.260.0150.00416.44
8.3.250.0130.00618.85
8.3.240.0110.00417.14
8.3.230.0100.00818.86
8.3.220.0100.00318.88
8.3.210.0120.00716.64
8.3.200.0060.00316.50
8.3.190.0110.00917.33
8.3.180.0110.00717.48
8.3.170.0070.00318.97
8.3.160.0100.00716.63
8.3.150.0040.00416.68
8.3.140.0000.00817.27
8.3.130.0000.01518.36
8.3.120.0060.01318.98
8.3.110.0160.00020.94
8.3.100.0060.00324.06
8.3.90.0030.01126.77
8.3.80.0000.01517.97
8.3.70.0110.01118.55
8.3.60.0070.01118.68
8.3.50.0100.01016.39
8.3.40.0110.00318.57
8.3.30.0150.00018.85
8.3.20.0070.00021.86
8.3.10.0030.00521.71
8.3.00.0040.00423.51
8.2.290.0090.00620.54
8.2.280.0090.01022.27
8.2.270.0030.01416.70
8.2.260.0030.01216.49
8.2.250.0080.00016.61
8.2.240.0090.00017.18
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0060.00318.42
8.2.190.0070.00716.58
8.2.180.0100.00716.75
8.2.170.0070.00722.96
8.2.160.0040.01220.39
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0050.00326.16
8.2.110.0040.00420.20
8.2.100.0040.00817.78
8.2.90.0060.00320.59
8.2.80.0040.00418.05
8.2.70.0000.00918.16
8.2.60.0040.00418.16
8.2.50.0000.00918.10
8.2.40.0060.00322.14
8.2.30.0040.00419.38
8.2.20.0000.00718.12
8.2.10.0020.00519.49
8.2.00.0050.00219.37
8.1.330.0140.00421.77
8.1.320.0130.00517.94
8.1.310.0110.00716.35
8.1.300.0070.01118.49
8.1.290.0040.00418.88
8.1.280.0100.01025.92
8.1.270.0080.00822.06
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00023.75
8.1.230.0040.00820.97
8.1.220.0050.00317.74
8.1.210.0050.00319.10
8.1.200.0030.00617.23
8.1.190.0030.00617.23
8.1.180.0060.00318.10
8.1.170.0090.00018.59
8.1.160.0080.00018.83
8.1.150.0000.00718.81
8.1.140.0090.00018.80
8.1.130.0050.00320.16
8.1.120.0060.00317.41
8.1.110.0020.00517.48
8.1.100.0080.00017.50
8.1.90.0000.00717.47
8.1.80.0040.00417.47
8.1.70.0070.00017.50
8.1.60.0140.00517.57
8.1.50.0000.00717.50
8.1.40.0000.00817.43
8.1.30.0000.00817.59
8.1.20.0030.00617.64
8.1.10.0040.00417.57
8.1.00.0050.00317.40
8.0.300.0090.00019.86
8.0.290.0040.00416.58
8.0.280.0070.00018.48
8.0.270.0030.00317.29
8.0.260.0060.00018.41
8.0.250.0000.00717.02
8.0.240.0000.00716.97
8.0.230.0000.00716.88
8.0.220.0080.00016.77
8.0.210.0000.00616.83
8.0.200.0000.00616.95
8.0.190.0030.00616.78
8.0.180.0070.00016.73
8.0.170.0040.00416.86
8.0.160.0000.00716.83
8.0.150.0030.00516.66
8.0.140.0030.00516.80
8.0.130.0030.00313.24
8.0.120.0000.00716.82
8.0.110.0040.00416.83
8.0.100.0040.00416.71
8.0.90.0070.00016.94
8.0.80.0120.00316.79
8.0.70.0040.00416.86
8.0.60.0040.00416.91
8.0.50.0050.00216.77
8.0.30.0070.00916.96
8.0.20.0060.01216.85
8.0.10.0000.00716.89
8.0.00.0120.01116.59
7.4.330.0000.00515.55
7.4.320.0030.00316.43
7.4.300.0030.00316.50
7.4.290.0070.00016.46
7.4.280.0040.00416.50
7.4.270.0040.00416.51
7.4.260.0040.00416.48
7.4.250.0070.00016.55
7.4.240.0050.00216.51
7.4.230.0050.00216.49
7.4.220.0040.00416.39
7.4.210.0100.00616.61
7.4.200.0040.00416.52
7.4.160.0120.00716.51
7.4.140.0140.01117.86
7.4.130.0160.00316.57
7.4.120.0030.01416.40
7.4.110.0060.01116.44
7.4.100.0200.00316.46
7.4.90.0040.01416.66
7.4.80.0100.00719.39
7.4.70.0100.00716.32
7.4.60.0140.00716.55
7.4.50.0060.00916.29
7.4.40.0080.00816.51
7.4.10.0030.01314.89
7.4.00.0110.00714.91
7.3.330.0030.00313.16
7.3.320.0000.00513.11
7.3.310.0040.00416.31
7.3.300.0000.00716.30
7.3.290.0080.00016.21
7.3.280.0060.01316.22
7.3.260.0100.00916.52
7.3.240.0070.01016.42
7.3.230.0090.00816.58
7.3.210.0030.01216.42
7.3.200.0090.00616.45
7.3.190.0060.00916.27
7.3.180.0040.01216.20
7.3.170.0070.01016.58
7.3.160.0080.00816.34
7.3.130.0090.00915.06
7.3.120.0060.01214.87
7.3.110.0070.00814.78
7.3.100.0060.00814.73
7.3.90.0050.01014.66
7.3.80.0110.00414.79
7.3.70.0020.01114.86
7.3.60.0100.00414.72
7.3.50.0090.00414.67
7.3.40.0050.00814.83
7.3.30.0090.00814.62
7.3.20.0090.00416.60
7.3.10.0090.00716.59
7.3.00.0080.00516.68
7.2.330.0150.00316.43
7.2.320.0030.01316.46
7.2.310.0110.00816.72
7.2.300.0070.01016.34
7.2.290.0090.01216.43
7.2.260.0100.01014.60
7.2.250.0060.00914.76
7.2.240.0040.01214.95
7.2.230.0090.00915.04
7.2.220.0110.00515.08
7.2.210.0050.00715.11
7.2.200.0070.00714.93
7.2.190.0050.00814.88
7.2.180.0090.00314.94
7.2.170.0090.00615.02
7.2.160.0040.00715.12
7.2.150.0030.01016.72
7.2.140.0080.00516.74
7.2.130.0050.00816.85
7.2.120.0080.00916.94
7.2.110.0070.00716.71
7.2.100.0000.01416.99
7.2.90.0080.01017.08
7.2.80.0070.00816.88
7.2.70.0070.00916.98
7.2.60.0070.01116.92
7.2.50.0030.01016.77
7.2.40.0070.00716.94
7.2.30.0020.01216.93
7.2.20.0090.00716.87
7.2.10.0090.00316.81
7.2.00.0050.00917.05
7.1.330.0060.00815.71
7.1.320.0040.00715.81
7.1.310.0020.01215.54
7.1.300.0020.01015.61
7.1.290.0080.00515.71
7.1.280.0040.01015.73
7.1.270.0070.00815.55
7.1.260.0050.00715.70
7.1.250.0060.00515.51
7.1.240.0110.00315.89
7.1.230.0030.00715.46
7.1.220.0060.00915.63
7.1.210.0100.00315.46
7.1.200.0060.00615.40
7.1.190.0030.00915.63
7.1.180.0090.00615.34
7.1.170.0120.00315.71
7.1.160.0000.00915.69
7.1.150.0070.00715.88
7.1.140.0060.00615.48
7.1.130.0000.01115.91
7.1.120.0040.01115.87
7.1.110.0070.00715.66
7.1.100.0100.00315.80
7.1.90.0030.01215.73
7.1.80.0040.00415.74
7.1.70.0000.01015.80
7.1.60.0050.00516.02
7.1.50.0000.01115.79
7.1.40.0030.00715.75
7.1.30.0000.01415.83
7.1.20.0050.00315.66
7.1.10.0040.00715.68
7.1.00.0000.01315.77

preferences:
30.31 ms | 403 KiB | 5 Q