3v4l.org

run code in 300+ PHP versions simultaneously
<?php $theAction = 'anything'; $site = 1; $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"); if ($theAction == 'unsubscribe') { $url = "https://test5.com/unsubscribe.php"; } else { $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.0140.00717.52
8.4.120.0120.00820.50
8.4.110.0130.00618.84
8.4.100.0110.01018.68
8.4.90.0110.01018.67
8.4.80.0050.00418.93
8.4.70.0130.01117.84
8.4.60.0130.00718.82
8.4.50.0130.00719.51
8.4.40.0000.01017.90
8.4.30.0090.00018.61
8.4.20.0130.00620.53
8.4.10.0030.00619.70
8.3.260.0130.00716.46
8.3.250.0110.00718.70
8.3.240.0110.00916.66
8.3.230.0030.00516.38
8.3.220.0130.00618.83
8.3.210.0110.00816.72
8.3.200.0060.00216.43
8.3.190.0090.00518.88
8.3.180.0080.01216.48
8.3.170.0060.01316.67
8.3.160.0120.00617.29
8.3.150.0030.01516.86
8.3.140.0040.00416.60
8.3.130.0040.00416.71
8.3.120.0140.00418.38
8.3.110.0040.00416.63
8.3.100.0160.00316.50
8.3.90.0050.00318.10
8.3.80.0060.00318.31
8.3.70.0150.00018.43
8.3.60.0070.01418.41
8.3.50.0100.00916.44
8.3.40.0060.01218.75
8.3.30.0000.01418.85
8.3.20.0040.00421.76
8.3.10.0000.00821.85
8.3.00.0080.00023.78
8.2.290.0100.00820.34
8.2.280.0070.00318.25
8.2.270.0140.00417.36
8.2.260.0040.00416.39
8.2.250.0050.00318.42
8.2.240.0060.00317.28
8.2.230.0040.00820.94
8.2.220.0080.00024.06
8.2.210.0030.00626.77
8.2.200.0030.00618.42
8.2.190.0070.01316.58
8.2.180.0160.00316.38
8.2.170.0150.00622.96
8.2.160.0110.00420.47
8.2.150.0000.00924.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0070.00020.99
8.2.110.0090.00021.12
8.2.100.0040.00818.02
8.2.90.0030.00517.94
8.2.80.0040.00418.05
8.2.70.0060.00618.05
8.2.60.0050.00318.16
8.2.50.0000.00818.10
8.2.40.0000.00819.48
8.2.30.0040.00419.25
8.2.20.0040.00418.19
8.2.10.0040.00419.56
8.2.00.0030.00319.22
8.1.330.0090.00922.02
8.1.320.0130.00616.04
8.1.310.0080.00017.03
8.1.300.0120.00320.36
8.1.290.0090.00018.88
8.1.280.0140.00425.92
8.1.270.0040.00422.17
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00321.99
8.1.230.0060.00622.57
8.1.220.0040.00417.77
8.1.210.0050.00320.02
8.1.200.0000.00817.23
8.1.190.0040.00417.22
8.1.180.0090.00018.10
8.1.170.0090.00018.45
8.1.160.0040.00418.98
8.1.150.0040.00418.52
8.1.140.0080.00018.88
8.1.130.0090.00017.41
8.1.120.0000.00817.46
8.1.110.0040.00417.47
8.1.100.0000.00717.46
8.1.90.0060.00317.36
8.1.80.0000.00917.43
8.1.70.0030.00317.43
8.1.60.0070.00317.48
8.1.50.0040.00417.55
8.1.40.0040.00417.51
8.1.30.0040.00417.58
8.1.20.0080.00017.68
8.1.10.0040.00417.41
8.1.00.0000.00817.42
8.0.300.0000.00721.95
8.0.290.0000.01016.63
8.0.280.0030.00318.33
8.0.270.0000.00717.92
8.0.260.0000.01116.93
8.0.250.0070.00016.86
8.0.240.0070.00017.00
8.0.230.0040.00416.93
8.0.220.0000.00716.80
8.0.210.0000.00716.69
8.0.200.0060.00016.93
8.0.190.0080.00016.88
8.0.180.0050.00216.92
8.0.170.0000.00816.85
8.0.160.0040.00416.85
8.0.150.0000.00716.66
8.0.140.0050.00316.83
8.0.130.0030.00313.22
8.0.120.0030.00516.85
8.0.110.0040.00416.88
8.0.100.0050.00216.79
8.0.90.0040.00416.87
8.0.80.0120.00316.83
8.0.70.0050.00216.86
8.0.60.0050.00316.94
8.0.50.0000.00816.73
8.0.30.0110.00916.93
8.0.20.0140.00617.13
8.0.10.0000.00816.85
8.0.00.0120.01016.71
7.4.330.0050.00015.55
7.4.320.0030.00316.60
7.4.300.0040.00416.51
7.4.290.0000.00816.59
7.4.280.0040.00416.63
7.4.270.0000.00616.52
7.4.260.0070.00016.39
7.4.250.0040.00416.57
7.4.240.0050.00316.54
7.4.230.0040.00416.71
7.4.220.0000.00716.26
7.4.210.0060.01016.55
7.4.200.0030.00416.51
7.4.160.0120.00416.55
7.4.140.0120.00917.86
7.4.130.0090.01516.60
7.4.120.0060.01316.62
7.4.110.0110.00716.32
7.4.100.0070.01416.60
7.4.90.0070.01016.41
7.4.80.0120.00619.39
7.4.70.0080.00916.59
7.4.60.0060.01316.57
7.4.50.0100.00716.56
7.4.40.0090.00616.57
7.4.00.0030.01315.14
7.3.330.0050.00013.24
7.3.320.0000.00613.15
7.3.310.0040.00416.09
7.3.300.0030.00316.25
7.3.290.0000.00716.31
7.3.280.0100.00616.24
7.3.260.0120.01016.47
7.3.240.0100.00816.44
7.3.230.0090.01216.61
7.3.210.0100.00716.42
7.3.200.0100.01316.33
7.3.190.0080.00816.23
7.3.180.0110.00916.10
7.3.170.0100.00716.42
7.3.160.0130.00316.26
7.3.60.0070.00714.75
7.3.50.0100.00314.78
7.3.40.0150.00014.79
7.3.30.0090.00314.64
7.3.20.0100.00416.79
7.3.10.0160.00816.86
7.3.00.0120.00416.66
7.2.330.0100.00716.45
7.2.320.0070.01716.39
7.2.310.0100.01316.48
7.2.300.0130.00316.46
7.2.290.0030.01616.55
7.2.190.0000.01214.68
7.2.180.0030.00714.92
7.2.170.0030.00915.06
7.2.160.0090.01214.90
7.2.150.0070.00716.96
7.2.140.0140.00016.76
7.2.130.0030.01316.71
7.2.120.0060.00916.66
7.2.110.0090.00616.90
7.2.100.0060.00916.90
7.2.90.0030.01416.91
7.2.80.0030.01317.10
7.2.70.0120.00416.85
7.2.60.0030.01016.70
7.2.50.0030.01016.72
7.2.40.0070.00717.07
7.2.30.0080.00516.98
7.2.20.0150.00916.68
7.2.10.0100.00317.00
7.2.00.0080.00516.75
7.1.300.0040.00815.82
7.1.290.0050.01615.49
7.1.280.0070.01315.67
7.1.270.0060.01015.78
7.1.260.0120.00015.54
7.1.250.0100.00315.48

preferences:
28.49 ms | 403 KiB | 5 Q