3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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']; } 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.0040.01118.55
8.3.50.0110.00418.09
8.3.40.0040.01419.21
8.3.30.0180.00318.88
8.3.20.0090.00024.18
8.3.10.0050.00224.66
8.3.00.0080.00026.16
8.2.180.0110.00425.92
8.2.170.0090.00622.96
8.2.160.0130.00722.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00226.35
8.2.110.0060.00322.05
8.2.100.0140.00017.84
8.2.90.0000.00817.73
8.2.80.0050.00318.92
8.2.70.0050.00317.63
8.2.60.0060.00318.01
8.2.50.0000.00818.07
8.2.40.0030.00618.34
8.2.30.0070.00018.19
8.2.20.0000.00718.17
8.2.10.0000.00719.29
8.2.00.0000.00719.29
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0060.00320.78
8.1.230.0070.00417.83
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0100.00017.35
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0040.00418.24
8.1.160.0000.00718.93
8.1.150.0070.00018.80
8.1.140.0040.00418.81
8.1.130.0030.00320.19
8.1.120.0000.00717.34
8.1.110.0040.00417.47
8.1.100.0030.00517.39
8.1.90.0030.00317.33
8.1.80.0090.00017.43
8.1.70.0030.00317.39
8.1.60.0030.00517.65
8.1.50.0000.00817.59
8.1.40.0000.00717.43
8.1.30.0000.00717.59
8.1.20.0030.00617.66
8.1.10.0040.00417.55
8.1.00.0040.00417.40
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0040.00420.29
8.0.270.0030.00318.07
8.0.260.0030.00320.28
8.0.250.0030.00316.89
8.0.240.0070.00017.04
8.0.230.0000.00717.02
8.0.220.0030.00316.87
8.0.210.0000.00716.91
8.0.200.0030.00316.97
8.0.190.0050.00216.93
8.0.180.0040.00416.89
8.0.170.0000.00916.91
8.0.160.0040.00416.91
8.0.150.0040.00416.93
8.0.140.0030.00316.96
8.0.130.0050.00013.27
8.0.120.0040.00416.88
8.0.110.0000.00716.90
8.0.100.0030.00616.94
8.0.90.0030.00616.77
8.0.80.0040.01016.94
8.0.70.0000.00716.77
8.0.60.0000.00816.96
8.0.50.0020.00516.93
8.0.30.0090.00917.04
8.0.20.0090.00917.06
8.0.10.0040.00416.89
8.0.00.0070.01116.72
7.4.330.0040.00015.55
7.4.320.0060.00016.56
7.4.300.0000.00616.64
7.4.290.0070.00016.45
7.4.280.0060.00316.50
7.4.270.0080.00016.43
7.4.260.0000.00613.16
7.4.250.0030.00316.38
7.4.240.0040.00416.61
7.4.230.0100.00016.53
7.4.220.0050.00216.34
7.4.210.0070.01116.56
7.4.200.0040.00416.43
7.4.130.0080.00816.42
7.4.120.0000.02016.55
7.4.110.0100.00716.57
7.4.100.0060.01316.46
7.4.90.0040.01216.66
7.4.80.0070.01019.39
7.4.70.0150.00716.64
7.4.60.0260.00716.33
7.4.50.0230.01016.31
7.4.40.0290.00416.29
7.4.30.0220.01016.31
7.4.20.0040.02116.18
7.4.10.0140.01016.18
7.4.00.0150.00616.38
7.3.330.0000.00716.29
7.3.320.0000.00513.08
7.3.310.0040.00416.19
7.3.300.0030.00316.31
7.3.290.0080.00716.29
7.3.260.0120.01216.56
7.3.240.0120.00816.55
7.3.230.0100.00716.41
7.3.210.0080.00816.36
7.3.200.0110.00616.50
7.3.190.0060.00916.43
7.3.180.0230.01016.35
7.3.170.0160.01616.49
7.3.160.0200.01016.38
7.3.150.0300.00616.11
7.3.140.0260.00316.28
7.3.130.0170.01316.29
7.3.120.0240.00916.05
7.3.110.0130.00916.30
7.3.100.0200.01016.54
7.3.90.0160.01616.29
7.3.80.0240.00816.62
7.3.70.0250.00616.34
7.3.60.0280.00516.39
7.3.50.0190.01416.38
7.3.40.0250.00316.25
7.3.30.0120.01516.32
7.3.20.0240.00716.48
7.3.10.0210.01116.42
7.3.00.0190.00916.21
7.2.330.0130.01016.34
7.2.310.0250.00616.68
7.2.300.0160.01216.11
7.2.290.0280.00316.61
7.2.280.0290.00416.50
7.2.270.0170.01016.40
7.2.260.0140.01716.56
7.2.250.0250.00816.54
7.2.240.0240.00916.61
7.2.230.0260.01116.29
7.2.220.0220.01116.44
7.2.210.0150.01516.64
7.2.200.0250.00716.45
7.2.190.0260.00616.57
7.2.180.0180.01416.43
7.2.170.0170.00916.27
7.2.160.0270.00516.53
7.2.150.0240.00716.44
7.2.140.0280.01116.50
7.2.130.0320.00316.53
7.2.120.0230.01616.53
7.2.110.0320.01116.42
7.2.100.0300.01516.65
7.2.90.0220.00716.45
7.2.80.0290.01316.62
7.2.70.0210.01216.58
7.2.60.0330.01216.64
7.2.50.0300.01316.42
7.2.40.0220.02116.50
7.2.30.0330.01216.51
7.2.20.0270.02416.48
7.2.10.0340.00616.39
7.2.00.0270.01016.46

preferences:
65.87 ms | 401 KiB | 5 Q