3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$ip_address = $_SERVER['REMOTE_ADDR'] //whether ip is from share internet if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip_address=$_SERVER['HTTP_CLIENT_IP']; } //whether ip is from proxy elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip_address=$_SERVER['HTTP_X_FORWARDED_FOR']; } //whether ip is from remote address else { // $ip_address = $_SERVER['REMOTE_ADDR']; } $ip_address = $_SERVER['REMOTE_ADDR']; echo $ip_address; ?>

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.0030.01316.88
8.3.50.0080.00822.15
8.3.40.0110.00418.80
8.3.30.0140.00019.09
8.3.20.0080.00020.10
8.3.10.0080.00023.52
8.3.00.0080.00019.38
8.2.180.0090.00618.54
8.2.170.0040.01122.96
8.2.160.0130.00320.35
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0000.00722.19
8.2.110.0070.00422.31
8.2.100.0110.00017.91
8.2.90.0050.00319.21
8.2.80.0030.00517.97
8.2.70.0030.00717.63
8.2.60.0040.00418.04
8.2.50.0100.00018.07
8.2.40.0040.00418.22
8.2.30.0070.00018.05
8.2.20.0070.00017.73
8.2.10.0080.00018.13
8.2.00.0000.00717.79
8.1.280.0120.00625.92
8.1.270.0100.01023.96
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.59
8.1.230.0040.00818.95
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0040.00417.41
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0040.00421.97
8.1.150.0060.00618.64
8.1.140.0040.00417.45
8.1.130.0000.00717.75
8.1.120.0030.00317.36
8.1.110.0000.00717.46
8.1.100.0030.00617.43
8.1.90.0070.00017.46
8.1.80.0000.00817.45
8.1.70.0070.00017.43
8.1.60.0040.00717.49
8.1.50.0040.00417.43
8.1.40.0040.00417.49
8.1.30.0050.00517.58
8.1.20.0000.00817.71
8.1.10.0000.00817.53
8.1.00.0000.00817.43
8.0.300.0050.00318.77
8.0.290.0030.00517.02
8.0.280.0030.00318.44
8.0.270.0040.00417.19
8.0.260.0070.00017.13
8.0.250.0040.00416.98
8.0.240.0020.00516.98
8.0.230.0030.00316.92
8.0.220.0000.00716.88
8.0.210.0030.00316.89
8.0.200.0030.00316.97
8.0.190.0050.00316.89
8.0.180.0050.00316.96
8.0.170.0000.00816.96
8.0.160.0000.00816.98
8.0.150.0030.00316.89
8.0.140.0050.00316.95
8.0.130.0000.00513.34
8.0.120.0070.00016.80
8.0.110.0050.00316.88
8.0.100.0040.00416.80
8.0.90.0040.00416.82
8.0.80.0100.00717.00
8.0.70.0080.00016.92
8.0.60.0000.00716.98
8.0.50.0000.00716.95
8.0.30.0140.00417.09
8.0.20.0110.00817.40
8.0.10.0040.00417.07
8.0.00.0100.00816.64
7.4.330.0000.00615.09
7.4.320.0000.00816.64
7.4.300.0000.00616.50
7.4.290.0030.00316.43
7.4.280.0100.00016.54
7.4.270.0030.00316.65
7.4.260.0030.00316.48
7.4.250.0070.00016.60
7.4.240.0040.00416.51
7.4.230.0030.00316.50
7.4.220.0070.01116.60
7.4.210.0060.01016.60
7.4.200.0030.00316.41
7.4.190.0000.00716.69
7.4.160.0030.01416.41
7.4.150.0150.00317.40
7.4.140.0110.01017.86
7.4.130.0100.00716.53
7.4.120.0100.00716.51
7.4.110.0120.00616.52
7.4.100.0040.01416.44
7.4.90.0090.00916.48
7.4.80.0030.01319.39
7.4.70.0060.01016.52
7.4.60.0090.00616.33
7.4.50.0050.00316.53
7.4.40.0060.00622.77
7.4.30.0100.01016.49
7.4.00.0000.01514.94
7.3.330.0050.00013.07
7.3.320.0060.00013.17
7.3.310.0000.00716.29
7.3.300.0020.00516.34
7.3.290.0140.00616.43
7.3.280.0080.01116.34
7.3.270.0090.00917.40
7.3.260.0100.01316.46
7.3.250.0130.00716.43
7.3.240.0120.00916.50
7.3.230.0060.01116.45
7.3.210.0080.00816.49
7.3.200.0090.01319.39
7.3.190.0030.01316.41
7.3.180.0070.01016.44
7.3.170.0140.00416.43
7.3.160.0100.00616.50
7.3.120.0040.01414.96
7.3.10.0000.00916.68
7.3.00.0090.00616.62
7.2.330.0090.00916.72
7.2.320.0070.01416.41
7.2.310.0070.01316.64
7.2.300.0030.01416.63
7.2.290.0110.00516.25
7.2.130.0060.00916.90
7.2.120.0080.00816.70
7.2.110.0060.00616.61
7.2.100.0100.00316.59
7.2.90.0110.00316.90
7.2.80.0080.00316.74
7.2.70.0070.00716.80
7.2.60.0100.00616.88
7.2.50.0030.00716.83
7.2.40.0070.00316.77
7.2.30.0070.01016.73
7.2.20.0060.00916.93
7.2.10.0040.00916.85
7.2.00.0070.00917.89
7.1.250.0030.00715.59
7.1.100.0070.01018.15
7.1.70.0000.00817.04
7.1.60.0030.00919.46
7.1.50.0000.02016.96
7.1.00.0000.08022.57
7.0.200.0250.01114.37
7.0.140.0030.07322.00
7.0.100.0070.04020.18
7.0.90.0070.03719.91
7.0.80.0130.08020.00
7.0.70.0230.05019.92
7.0.60.0030.03719.96
7.0.50.0170.04020.35
7.0.40.0030.03720.11
7.0.30.0070.06320.11
7.0.20.0070.04320.23
7.0.10.0070.04020.07
7.0.00.0030.04720.10
5.6.280.0100.06721.07
5.6.250.0030.04020.49
5.6.240.0030.07020.66
5.6.230.0100.07320.72
5.6.220.0100.05320.46
5.6.210.0000.04320.66
5.6.200.0000.04721.08
5.6.190.0100.03321.00
5.6.180.0070.06321.08
5.6.170.0000.05321.03
5.6.160.0000.06321.01
5.6.150.0070.03721.17
5.6.140.0070.04021.16
5.6.130.0100.04021.01
5.6.120.0100.03721.00
5.6.110.0000.04321.03
5.6.100.0000.04021.00
5.6.90.0070.06021.03
5.6.80.0030.04020.43
5.6.70.0070.07720.39
5.6.60.0070.07020.39
5.6.50.0030.05720.46
5.6.40.0030.08320.34
5.6.30.0030.07720.40
5.6.20.0030.06720.39
5.6.10.0030.06320.36
5.6.00.0100.07720.38
5.5.380.0000.04320.38
5.5.370.0030.03720.45
5.5.360.0000.04020.43
5.5.350.0000.04320.43
5.5.340.0070.04320.82
5.5.330.0070.04320.93
5.5.320.0170.05020.64
5.5.310.0100.04720.89
5.5.300.0030.04320.86
5.5.290.0100.03720.86
5.5.280.0100.03320.72
5.5.270.0100.04020.79
5.5.260.0030.04320.88
5.5.250.0000.04320.73
5.5.240.0000.04320.28
5.5.230.0030.04320.11
5.5.220.0100.04320.17
5.5.210.0070.07020.20
5.5.200.0170.05720.11
5.5.190.0070.07720.12
5.5.180.0230.06320.18
5.5.160.0130.07020.15
5.5.150.0070.07320.24
5.5.140.0100.08020.08
5.5.130.0070.07720.25
5.5.120.0170.08320.06
5.5.110.0130.07720.11
5.5.100.0100.07720.15
5.5.90.0030.08020.07
5.5.80.0100.06019.91
5.5.70.0130.06720.06
5.5.60.0100.07720.08
5.5.50.0030.06020.09
5.5.40.0100.06719.99
5.5.30.0100.07320.10
5.5.20.0100.07319.95
5.5.10.0170.06020.05
5.5.00.0030.06320.07
5.4.450.0030.03719.23
5.4.440.0030.04019.34
5.4.430.0070.05019.48
5.4.420.0070.03719.42
5.4.410.0070.06319.24
5.4.400.0070.03719.13
5.4.390.0130.05719.14
5.4.380.0000.08319.03
5.4.370.0070.06318.82
5.4.360.0100.07719.06
5.4.350.0100.07319.09
5.4.340.0130.06019.12
5.4.320.0100.04018.98
5.4.310.0130.07018.79
5.4.300.0030.08319.06
5.4.290.0030.07019.11
5.4.280.0100.04318.81
5.4.270.0100.07018.95
5.4.260.0070.07718.81
5.4.250.0070.07719.09
5.4.240.0100.04018.98
5.4.230.0100.06319.11
5.4.220.0070.06018.98
5.4.210.0070.07719.14
5.4.200.0030.04719.13
5.4.190.0100.06319.04
5.4.180.0130.04319.13
5.4.170.0070.07718.99
5.4.160.0070.05719.07
5.4.150.0070.05018.88
5.4.140.0100.07016.32
5.4.130.0100.03716.30
5.4.120.0100.06716.23
5.4.110.0100.07016.26
5.4.100.0070.05316.33
5.4.90.0070.06716.36
5.4.80.0230.02316.22
5.4.70.0100.03716.43
5.4.60.0170.06016.38
5.4.50.0000.06716.46
5.4.40.0200.06716.23
5.4.30.0070.07016.19
5.4.20.0130.07016.30
5.4.10.0070.06716.39
5.4.00.0100.04315.75
5.3.290.0030.07014.51
5.3.280.0070.08014.46
5.3.270.0100.07714.46
5.3.260.0070.04714.51
5.3.250.0070.03314.57
5.3.240.0030.08014.57
5.3.230.0070.05714.58
5.3.220.0030.07714.42
5.3.210.0100.08014.43
5.3.200.0030.07714.42
5.3.190.0070.07714.55
5.3.180.0070.07714.47
5.3.170.0070.06714.42
5.3.160.0100.06714.45
5.3.150.0130.04714.42
5.3.140.0070.07714.55
5.3.130.0000.08014.40
5.3.120.0070.07714.42
5.3.110.0100.07714.45
5.3.100.0000.08013.89
5.3.90.0070.06713.98
5.3.80.0030.07313.88
5.3.70.0070.07313.88
5.3.60.0130.07013.99
5.3.50.0030.07313.70
5.3.40.0100.04713.91
5.3.30.0030.07013.76
5.3.20.0030.07313.55
5.3.10.0070.06713.57
5.3.00.0030.04013.57
5.2.170.0070.06011.15
5.2.160.0030.06310.99
5.2.150.0070.03711.14
5.2.140.0000.06711.00
5.2.130.0030.06711.09
5.2.120.0070.03311.08
5.2.110.0030.06011.14
5.2.100.0000.05711.06
5.2.90.0000.05711.14
5.2.80.0000.03311.14
5.2.70.0000.06011.16
5.2.60.0100.05711.05
5.2.50.0030.05310.98
5.2.40.0000.06711.00
5.2.30.0000.06011.01
5.2.20.0070.05710.98
5.2.10.0100.05710.92
5.2.00.0030.06710.74
5.1.60.0070.03310.07
5.1.50.0130.04310.04
5.1.40.0030.05310.03
5.1.30.0070.04310.43
5.1.20.0030.05710.39
5.1.10.0070.0509.91
5.1.00.0030.05710.10
5.0.50.0000.0379.79
5.0.40.0000.0409.79
5.0.30.0000.0509.79
5.0.20.0030.0479.79
5.0.10.0030.0379.79
5.0.00.0000.0509.79
4.4.90.0070.0339.79
4.4.80.0000.0279.79
4.4.70.0000.0309.79
4.4.60.0100.0209.79
4.4.50.0030.0339.79
4.4.40.0130.0239.79
4.4.30.0000.0239.79
4.4.20.0070.0339.79
4.4.10.0030.0209.79
4.4.00.0070.0479.79
4.3.110.0000.0379.79
4.3.100.0030.0339.79
4.3.90.0000.0209.79
4.3.80.0000.0339.79
4.3.70.0000.0409.79
4.3.60.0070.0309.79
4.3.50.0000.0309.79
4.3.40.0000.0279.79
4.3.30.0000.0279.79
4.3.20.0030.0209.79
4.3.10.0030.0209.79
4.3.00.0030.0339.79

preferences:
37.43 ms | 401 KiB | 5 Q