3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Prince Adeyemi W1PAA fb: YourVegasPrince */ $condition = false; $signin = "signin.php"; $register = "register.php"; /*one-liner*/ // redirect(( $condition ) ? $signin : $register); /* more cleaner way */ $redirect = ( $condition ) ? $signin : $register; redirect($redirect); /*redirect function*/ function redirect( string $url ){ header('Location: '. $url); printf("%s", "Redirecting to $url"); die(); }

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.5.30.0080.00921.40
8.5.20.0110.00619.30
8.5.10.0100.00816.77
8.5.00.0150.00619.97
8.4.180.0140.00819.55
8.4.170.0140.00820.63
8.4.160.0150.00621.47
8.4.150.0090.00416.81
8.4.140.0140.00817.67
8.4.130.0080.00317.58
8.4.120.0090.01120.50
8.4.110.0070.00222.25
8.4.100.0050.00417.69
8.4.90.0120.00618.72
8.4.80.0050.00417.86
8.4.70.0130.00717.63
8.4.60.0140.00718.76
8.4.50.0040.00520.36
8.4.40.0150.00322.32
8.4.30.0090.00622.56
8.4.20.0060.01018.41
8.4.10.0200.00019.27
8.3.300.0130.00720.82
8.3.290.0100.01020.69
8.3.280.0050.00618.43
8.3.270.0140.00616.38
8.3.260.0090.01116.32
8.3.250.0080.01018.88
8.3.240.0080.00716.70
8.3.230.0050.00416.64
8.3.220.0090.01017.11
8.3.210.0120.00816.62
8.3.200.0070.00216.49
8.3.190.0110.00916.90
8.3.180.0100.00916.71
8.3.170.0120.00616.92
8.3.160.0170.00418.45
8.3.150.0090.00916.66
8.3.140.0000.00817.18
8.3.130.0060.00616.47
8.3.120.0060.00320.82
8.3.110.0080.00020.94
8.3.100.0050.00524.06
8.3.90.0030.00626.77
8.3.80.0100.00019.36
8.3.70.0090.00918.29
8.3.60.0110.00418.30
8.3.50.0080.00517.42
8.3.40.0090.00618.70
8.3.30.0070.00718.84
8.3.20.0060.00320.57
8.3.10.0040.00420.57
8.3.00.0040.00420.83
8.2.300.0110.01021.98
8.2.290.0130.00620.55
8.2.280.0070.00818.41
8.2.270.0030.01517.30
8.2.260.0070.01118.19
8.2.250.0060.00318.35
8.2.240.0040.00417.00
8.2.230.0050.00322.58
8.2.220.0070.00337.54
8.2.210.0140.00026.77
8.2.200.0030.00618.88
8.2.190.0090.00616.58
8.2.180.0090.01318.42
8.2.170.0090.00622.96
8.2.160.0070.01020.81
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0060.00317.97
8.2.120.0080.00026.35
8.2.110.0050.00521.18
8.2.100.0070.00417.79
8.2.90.0050.00317.62
8.2.80.0000.00917.97
8.2.70.0060.00317.80
8.2.60.0050.00318.22
8.2.50.0060.00318.10
8.2.40.0040.00419.30
8.2.30.0040.00419.30
8.2.20.0000.01018.06
8.2.10.0000.00719.36
8.2.00.0000.00718.04
8.1.340.0120.01117.69
8.1.330.0120.00716.88
8.1.320.0120.00715.84
8.1.310.0100.00718.04
8.1.300.0110.00717.66
8.1.290.0040.00430.84
8.1.280.0120.00625.92
8.1.270.0060.00320.14
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00722.24
8.1.230.0120.00020.91
8.1.220.0090.00017.78
8.1.210.0040.00418.77
8.1.200.0030.01017.23
8.1.190.0040.00417.25
8.1.180.0050.00318.10
8.1.170.0040.00418.58
8.1.160.0070.00019.00
8.1.150.0050.00218.69
8.1.140.0000.00720.20
8.1.130.0070.00020.22
8.1.120.0040.00417.32
8.1.110.0080.00017.37
8.1.100.0000.00817.43
8.1.90.0040.00417.39
8.1.80.0040.00417.42
8.1.70.0000.00717.28
8.1.60.0030.00717.56
8.1.50.0050.00317.52
8.1.40.0030.00617.52
8.1.30.0040.00417.68
8.1.20.0040.00417.51
8.1.10.0040.00417.37
8.1.00.0060.00317.46
8.0.300.0040.00419.99
8.0.290.0070.00316.75
8.0.280.0050.00318.43
8.0.270.0030.00317.23
8.0.260.0000.00618.45
8.0.250.0000.00717.02
8.0.240.0070.00016.88
8.0.230.0000.00716.94
8.0.220.0050.00216.97
8.0.210.0040.00416.95
8.0.200.0000.00716.91
8.0.190.0030.00517.00
8.0.180.0040.00416.87
8.0.170.0040.00416.88
8.0.160.0050.00316.98
8.0.150.0030.00316.80
8.0.140.0000.00716.91
8.0.130.0000.00513.39
8.0.120.0040.00416.90
8.0.110.0030.00516.90
8.0.100.0070.00016.93
8.0.90.0070.00016.77
8.0.80.0090.00916.86
8.0.70.0040.00416.71
8.0.60.0040.00416.71
8.0.50.0000.00816.75
8.0.30.0090.00816.96
8.0.20.0070.01117.40
8.0.10.0000.00716.78
8.0.00.0100.00816.71
7.4.330.0000.00515.55
7.4.320.0070.00016.52
7.4.300.0060.00016.42
7.4.290.0020.00516.39
7.4.280.0060.00316.50
7.4.270.0030.00616.50
7.4.260.0000.00716.46
7.4.250.0070.00016.55
7.4.240.0000.00716.54
7.4.230.0050.00316.57
7.4.220.0040.00416.52
7.4.210.0060.00816.62
7.4.200.0030.00316.47
7.4.160.0070.01016.48
7.4.140.0100.00717.86
7.4.130.0100.00716.53
7.4.120.0050.01416.75
7.4.110.0060.01216.33
7.4.100.0160.00816.49
7.4.90.0070.01016.58
7.4.80.0090.00619.39
7.4.70.0080.00916.58
7.4.60.0060.01316.68
7.4.50.0100.00316.46
7.4.40.0030.01316.43
7.4.00.0070.01015.23
7.3.330.0090.00013.30
7.3.320.0000.00513.38
7.3.310.0000.00816.48
7.3.300.0000.00716.41
7.3.290.0000.00716.43
7.3.280.0130.00516.40
7.3.260.0110.00716.45
7.3.240.0090.01016.52
7.3.230.0060.01016.38
7.3.210.0090.00616.45
7.3.200.0080.00816.45
7.3.190.0120.00916.42
7.3.180.0080.00816.61
7.3.170.0070.01116.65
7.3.160.0090.01216.52
7.3.50.0080.00514.85
7.3.40.0030.01414.83
7.3.30.0000.01814.89
7.3.20.0850.00814.75
7.3.10.0270.01014.89
7.3.00.0280.00814.65
7.2.330.0100.01016.55
7.2.320.0070.01016.62
7.2.310.0100.00616.36
7.2.300.0060.01216.72
7.2.290.0070.01416.47
7.2.180.0120.01014.90
7.2.170.0120.00314.87
7.2.160.0070.00714.92
7.2.150.0410.00315.10
7.2.140.0350.01015.07
7.2.130.0300.00514.97
7.2.120.0320.00414.90
7.2.110.0360.00515.06
7.2.100.0390.00714.93
7.2.90.0320.00615.06
7.2.80.0280.01015.12
7.2.70.0300.01015.11
7.2.60.0320.00515.00
7.2.50.0340.00815.08
7.2.40.0390.00215.16
7.2.30.0360.00515.12
7.2.20.0370.00815.08
7.2.10.0380.00514.85
7.2.00.0340.00615.00
7.1.280.0100.00313.95
7.1.270.0490.00314.13
7.1.260.0170.00313.85
7.1.250.0290.00513.96

preferences:
104.58 ms | 1411 KiB | 5 Q