3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET = [ 'param1' => 3000, 'param2' => 'campaign2' ]; $allowed_param = array ( '3000', '4000', '5000', ); if (isset($_GET['param1']) && $_GET['param2'] == 'campaign1') { if (!in_array($_GET["param1"], $allowed_param)) { //Header('Referer: https://google.com'); //Header('Location: https://camp1.contoso.com/'); die(1); } else { //Header('Referer: https://google.com'); //Header('Location: https://camp1.contoso.com/'); die(2); } } if (isset($_GET['param1']) && $_GET['param2'] == 'campaign2') { if (!in_array($_GET["param1"], $allowed_param)) { //Header('Referer: https://google.com'); //Header('Location: https://camp2.contoso.com/'); die(3); } else { //Header('Referer: https://google.com'); //Header('Location: https://camp2.contoso.com'); die(4); } } die(5);

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.3.60.0140.00716.63
8.3.50.0120.00317.90
8.3.40.0080.00818.79
8.3.30.0140.00018.66
8.3.20.0040.00420.90
8.3.10.0050.00221.90
8.3.00.0040.00423.66
8.2.180.0100.01025.92
8.2.170.0110.00719.09
8.2.160.0160.00322.96
8.2.150.0000.00724.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00020.91
8.2.110.0040.00420.52
8.2.100.0120.00017.91
8.2.90.0050.00317.75
8.2.80.0000.00818.94
8.2.70.0050.00517.63
8.2.60.0000.00817.63
8.2.50.0050.00317.93
8.2.40.0080.00019.48
8.2.30.0030.00519.31
8.2.20.0030.00518.13
8.2.10.0040.00419.33
8.2.00.0050.00218.02
8.1.280.0070.00725.92
8.1.270.0060.00318.96
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00721.98
8.1.230.0090.00320.96
8.1.220.0040.00417.76
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00717.23
8.1.180.0030.00518.10
8.1.170.0040.00417.62
8.1.160.0000.00718.82
8.1.150.0050.00218.83
8.1.140.0040.00418.82
8.1.130.0000.00717.46
8.1.120.0080.00417.50
8.1.110.0100.00017.38
8.1.100.0040.00417.44
8.1.90.0000.00817.55
8.1.80.0030.00617.39
8.1.70.0000.00717.39
8.1.60.0000.00817.50
8.1.50.0000.01017.55
8.1.40.0030.00517.43
8.1.30.0040.00417.66
8.1.20.0040.00417.67
8.1.10.0080.00017.50
8.1.00.0000.01017.37
8.0.300.0080.00019.05
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0050.00217.19
8.0.260.0060.00016.78
8.0.250.0080.00217.07
8.0.240.0030.00317.06
8.0.230.0030.00317.07
8.0.220.0000.00816.88
8.0.210.0070.00016.98
8.0.200.0070.00016.90
8.0.190.0000.00716.93
8.0.180.0030.00516.98
8.0.170.0040.00417.01
8.0.160.0070.00016.97
8.0.150.0040.00417.03
8.0.140.0000.00716.95
8.0.130.0030.00313.42
8.0.120.0000.00716.91
8.0.110.0050.00316.90
8.0.100.0000.00716.92
8.0.90.0000.00716.98
8.0.80.0090.00616.93
8.0.70.0070.00017.03
8.0.60.0040.00416.78
8.0.50.0050.00216.84
8.0.30.0100.01117.26
8.0.20.0090.01317.40
8.0.10.0000.00817.07
8.0.00.0170.00716.82
7.4.330.0000.00615.55
7.4.320.0030.00316.66
7.4.300.0000.00716.61
7.4.290.0040.00416.61
7.4.280.0040.00416.57
7.4.270.0040.00416.55
7.4.260.0040.00416.52
7.4.250.0050.00516.39
7.4.240.0060.00316.67
7.4.230.0040.00416.66
7.4.220.0040.00416.53
7.4.210.0060.00916.58
7.4.200.0050.00316.72
7.4.160.0060.01316.63
7.4.140.0120.00917.86
7.4.130.0100.00616.56
7.4.120.0090.01516.50
7.4.110.0120.00616.50
7.4.100.0120.00616.51
7.4.90.0130.00916.68
7.4.80.0090.00919.39
7.4.70.0060.00516.49
7.4.60.0140.00316.41
7.4.50.0060.00916.25
7.4.40.0100.00716.33
7.4.00.0060.00714.99
7.3.330.0060.00013.25
7.3.320.0030.00313.25
7.3.310.0060.00016.47
7.3.300.0070.00016.43
7.3.290.0030.00316.51
7.3.280.0110.00716.38
7.3.260.0090.00816.51
7.3.240.0120.00816.37
7.3.230.0170.00016.32
7.3.210.0040.01116.41
7.3.200.0100.00716.50
7.3.190.0080.01316.40
7.3.180.0080.01216.39
7.3.170.0100.01016.30
7.3.160.0130.00316.35
7.3.120.0060.01214.93
7.3.110.0060.00914.79
7.3.100.0030.01014.63
7.3.90.0030.01015.05
7.3.80.0030.01015.01
7.3.70.0030.00714.88
7.3.60.0040.00414.82
7.3.50.0030.00614.95
7.3.40.0070.00414.87
7.3.30.0000.00814.73
7.3.20.0120.00316.65
7.3.10.0260.00715.39
7.3.00.0280.00815.38
7.2.330.0130.00716.60
7.2.320.0100.01316.51
7.2.310.0060.01216.75
7.2.300.0070.01016.73
7.2.290.0090.00916.46
7.2.250.0060.01314.95
7.2.240.0120.00614.98
7.2.230.0080.00515.18
7.2.220.0030.01015.24
7.2.210.0090.00615.13
7.2.200.0000.01514.97
7.2.190.0070.01114.94
7.2.180.0030.00714.99
7.2.170.0060.00915.01
7.2.130.0430.00715.06
7.2.120.0510.00514.99
7.2.110.0450.00614.97
7.2.100.0380.00515.19
7.2.90.0390.00314.86
7.2.80.0310.01015.07
7.2.70.0440.01214.93
7.2.60.0450.00215.04
7.2.50.0520.00714.92
7.2.40.0700.00515.10
7.2.30.1170.01215.05
7.2.20.0500.00714.87
7.2.10.0540.00715.04
7.2.00.0430.00315.09
7.1.330.0070.00715.80
7.1.320.0060.00915.61
7.1.310.0030.01015.96
7.1.300.0060.00315.56
7.1.290.0030.00716.04
7.1.280.0060.00615.70
7.1.270.0030.01015.79
7.1.260.0070.01115.51
7.1.250.0470.00313.88

preferences:
30.72 ms | 400 KiB | 5 Q