3v4l.org

run code in 300+ PHP versions simultaneously
<?php //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']; } 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.0070.00716.88
8.3.50.0080.00821.95
8.3.40.0110.00418.70
8.3.30.0070.00718.95
8.3.20.0040.00420.29
8.3.10.0040.00423.70
8.3.00.0000.00919.38
8.2.180.0070.00718.56
8.2.170.0100.01022.96
8.2.160.0070.00720.53
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0100.01026.16
8.2.120.0070.00022.09
8.2.110.0060.00320.57
8.2.100.0110.00018.03
8.2.90.0040.00419.30
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0030.00518.16
8.2.50.0000.00818.10
8.2.40.0040.00419.86
8.2.30.0040.00419.91
8.2.20.0080.00017.71
8.2.10.0040.00418.19
8.2.00.0000.00717.86
8.1.280.0150.00025.92
8.1.270.0040.00823.89
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00621.11
8.1.230.0070.00417.83
8.1.220.0040.00417.74
8.1.210.0070.00318.77
8.1.200.0090.00017.35
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0030.00518.43
8.1.160.0000.00721.95
8.1.150.0070.00018.69
8.1.140.0000.00717.36
8.1.130.0000.00717.87
8.1.120.0050.00217.36
8.1.110.0000.00817.43
8.1.100.0050.00317.43
8.1.90.0040.00417.44
8.1.80.0030.00517.46
8.1.70.0030.00317.47
8.1.60.0040.00417.58
8.1.50.0000.00917.54
8.1.40.0050.00317.42
8.1.30.0000.00917.64
8.1.20.0030.00617.61
8.1.10.0040.00417.46
8.1.00.0060.00317.38
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.31
8.0.270.0000.00717.17
8.0.260.0050.00317.29
8.0.250.0030.00317.05
8.0.240.0060.00016.95
8.0.230.0070.00017.01
8.0.220.0070.00016.99
8.0.210.0040.00416.94
8.0.200.0000.00716.87
8.0.190.0040.00416.91
8.0.180.0030.00616.89
8.0.170.0000.00816.99
8.0.160.0060.00317.01
8.0.150.0020.00516.86
8.0.140.0070.00016.95
8.0.130.0000.00513.34
8.0.120.0080.00016.95
8.0.110.0040.00416.87
8.0.100.0040.00416.95
8.0.90.0000.00716.79
8.0.80.0030.01216.84
8.0.70.0050.00316.84
8.0.60.0000.01016.82
8.0.50.0070.00016.91
8.0.30.0090.00917.21
8.0.20.0080.01017.41
8.0.10.0000.00716.91
8.0.00.0110.00616.94
7.4.330.0060.00015.15
7.4.320.0060.00016.62
7.4.300.0070.00016.45
7.4.290.0000.00716.50
7.4.280.0030.00616.64
7.4.270.0040.00416.59
7.4.260.0000.00716.54
7.4.250.0050.00216.48
7.4.240.0020.00516.59
7.4.230.0030.00316.49
7.4.220.0060.01216.62
7.4.210.0120.00516.55
7.4.200.0000.00716.50
7.4.190.0070.00016.66
7.4.160.0030.01316.60
7.4.150.0140.00417.40
7.4.140.0120.01217.86
7.4.130.0090.00916.48
7.4.120.0080.01016.61
7.4.110.0090.01216.60
7.4.100.0190.00616.62
7.4.90.0070.01316.38
7.4.80.0070.01419.39
7.4.70.0090.00616.49
7.4.60.0110.00516.48
7.4.50.0030.00516.55
7.4.40.0120.00916.56
7.4.30.0160.00016.61
7.4.00.0080.00814.90
7.3.330.0000.00613.16
7.3.320.0060.00013.04
7.3.310.0070.00016.47
7.3.300.0000.00616.30
7.3.290.0100.00616.24
7.3.280.0100.00816.35
7.3.270.0130.00317.40
7.3.260.0200.00316.32
7.3.250.0120.00616.40
7.3.240.0030.01316.39
7.3.230.0140.00716.39
7.3.210.0080.00816.32
7.3.200.0140.00619.39
7.3.190.0120.00416.58
7.3.180.0070.01316.55
7.3.170.0130.00316.36
7.3.160.0030.01316.60
7.3.120.0120.00614.89
7.3.110.0090.00914.93
7.3.100.0110.00414.62
7.3.90.0070.00714.69
7.3.80.0070.00714.75
7.3.70.0070.00715.00
7.3.60.0040.00814.82
7.3.50.0070.00714.91
7.3.40.0030.01314.95
7.3.30.0000.01115.03
7.3.20.0040.00716.46
7.3.10.0100.00416.54
7.3.00.0100.00716.76
7.2.330.0110.01216.34
7.2.320.0140.00316.62
7.2.310.0100.00716.70
7.2.300.0110.00416.35
7.2.290.0100.00716.33
7.2.250.0060.01214.52
7.2.240.0030.01714.91
7.2.230.0040.01415.10
7.2.220.0000.01415.18
7.2.210.0000.01415.03
7.2.200.0000.01414.96
7.2.190.0030.01314.86
7.2.180.0060.00615.06
7.2.170.0070.00315.11
7.2.130.0120.00516.67
7.2.120.0090.00916.84
7.2.110.0120.00316.54
7.2.100.0130.00516.77
7.2.90.0090.00716.89
7.2.80.0100.00816.80
7.2.70.0140.00517.03
7.2.60.0070.00916.86
7.2.50.0090.00916.72
7.2.40.0070.00716.90
7.2.30.0100.00716.72
7.2.20.0060.01116.77
7.2.10.0070.00916.90
7.2.00.0030.00916.83
7.1.330.0030.01015.57
7.1.320.0000.01315.60
7.1.310.0070.00315.49
7.1.300.0040.01115.90
7.1.290.0110.00415.54
7.1.280.0030.01215.95
7.1.270.0140.00015.46
7.1.260.0110.00415.70
7.1.250.0050.01115.65
7.1.70.0070.01117.03
7.1.60.0070.01419.46
7.1.50.0100.01016.76
7.1.00.0030.06722.44
7.0.200.0200.00314.75
7.0.140.0070.07022.09
7.0.60.0070.08020.01
7.0.50.0100.03317.66
7.0.40.0100.03720.23
7.0.30.0570.07320.21
7.0.20.0230.06019.95
7.0.10.0030.09020.04
7.0.00.0100.07020.20
5.6.280.0070.07321.11
5.6.210.0070.05320.54
5.6.200.0100.04718.12
5.6.190.0070.04320.57
5.6.180.3170.04320.36
5.6.170.0430.04720.71
5.6.160.0070.06720.48
5.6.150.0000.07018.11
5.6.140.0030.05018.21
5.6.130.0070.06718.20
5.6.120.0200.05321.02
5.6.110.0070.05320.88
5.6.100.0070.05721.08
5.6.90.0030.09320.87
5.6.80.0070.06720.28
5.6.70.4170.03720.36
5.5.350.0270.07320.47
5.5.340.0070.03717.92
5.5.330.0270.03720.37
5.5.320.0230.07720.34
5.5.310.0270.05020.12
5.5.300.0100.07317.98
5.5.290.0070.08318.02
5.5.280.0070.08320.87
5.5.270.0100.06320.87
5.5.260.0030.09020.75
5.5.250.0100.07320.48
5.5.240.0300.06020.23
5.4.450.0600.06319.48
5.4.440.0870.05719.50
5.4.430.0870.05019.29
5.4.420.0200.06719.23
5.4.410.0670.06019.49
5.4.400.0200.05318.91
5.4.390.0100.05319.31
5.4.380.0300.05018.66
5.4.370.0270.05718.68
5.4.360.0370.05018.59
5.4.350.0230.06718.59
5.4.340.0400.05018.57
5.4.320.0060.04112.45
5.4.310.0110.03712.45
5.4.300.0050.03712.45
5.4.290.0090.08912.44
5.4.280.0200.07212.33
5.4.270.0160.07112.33
5.4.260.0110.07512.33
5.4.250.0130.06812.33
5.4.240.0130.08412.33
5.4.230.0100.05012.32
5.4.220.0100.05212.32
5.4.210.0090.05912.32
5.4.200.0070.04612.32
5.4.190.0070.04012.32
5.4.180.0080.03712.32
5.4.170.0060.03812.33
5.4.160.0090.04112.33
5.4.150.0130.04612.32
5.4.140.0080.06012.01
5.4.130.0130.05012.00
5.4.120.0110.05311.95
5.4.110.0120.06511.95
5.4.100.0100.05111.95
5.4.90.0100.03611.95
5.4.80.0070.03911.95
5.4.70.0090.03711.94
5.4.60.0080.04011.95
5.4.50.0170.06911.94
5.4.40.0090.05411.93
5.4.30.0120.05611.93
5.4.20.0110.04511.93
5.4.10.0070.05611.93
5.4.00.0090.05311.41
5.3.290.0040.03912.80
5.3.280.0080.05212.71
5.3.270.0080.05712.72
5.3.260.0070.06212.72
5.3.250.0080.07312.71
5.3.240.0190.10612.72
5.3.230.0120.07012.71
5.3.220.0100.05512.68
5.3.210.0070.05912.68
5.3.200.0100.05212.68
5.3.190.0090.06812.68
5.3.180.0090.05312.67
5.3.170.0080.05412.67
5.3.160.0090.07212.67
5.3.150.0120.07412.67
5.3.140.0080.05212.66
5.3.130.0120.05212.66
5.3.120.0120.04912.66
5.3.110.0160.05112.66
5.3.100.0180.07212.12
5.3.90.0200.08512.09
5.3.80.0070.07212.07
5.3.70.0130.05912.07
5.3.60.0090.06312.07
5.3.50.0130.08512.00
5.3.40.0100.08412.00
5.3.30.0080.06311.95
5.3.20.0060.05211.73
5.3.10.0100.05711.69
5.3.00.0120.05211.68
5.2.170.0120.0389.18
5.2.160.0100.0569.18
5.2.150.0040.0349.18
5.2.140.0050.0469.17
5.2.130.0090.0429.14
5.2.120.0090.0459.14
5.2.110.0100.0399.14
5.2.100.0100.0679.14
5.2.90.0070.0639.14
5.2.80.0110.0579.14
5.2.70.0080.0579.13
5.2.60.0120.0529.09
5.2.50.0070.0639.06
5.2.40.0120.0589.03
5.2.30.0100.0729.01
5.2.20.0140.0539.00
5.2.10.0090.0428.92
5.2.00.0120.0678.78
5.1.60.0140.0428.07
5.1.50.0140.0468.06
5.1.40.0050.0368.04
5.1.30.0070.0688.39
5.1.20.0110.0488.41
5.1.10.0090.0428.14
5.1.00.0060.0418.14
5.0.50.0050.0306.61
5.0.40.0070.0346.47
5.0.30.0090.0476.29
5.0.20.0050.0326.26
5.0.10.0070.0276.24
5.0.00.0090.0566.23
4.4.90.0050.0294.78
4.4.80.0070.0224.75
4.4.70.0050.0214.75
4.4.60.0070.0344.75
4.4.50.0120.0354.77
4.4.40.0050.0404.71
4.4.30.0040.0414.76
4.4.20.0100.0404.84
4.4.10.0140.0284.85
4.4.00.0130.0664.76
4.3.110.0120.0364.67
4.3.100.0080.0274.67
4.3.90.0040.0214.63
4.3.80.0030.0284.58
4.3.70.0050.0174.63
4.3.60.0030.0234.63
4.3.50.0030.0234.63
4.3.40.0030.0334.54
4.3.30.0030.0223.28
4.3.20.0030.0263.26
4.3.10.0030.0223.22
4.3.00.0030.01310.55

preferences:
49.25 ms | 401 KiB | 5 Q