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.0030.01218.38
8.3.50.0190.01121.94
8.3.40.0140.00718.84
8.3.30.0070.01418.98
8.3.20.0120.00820.30
8.3.10.0150.00323.66
8.3.00.0130.00417.80
8.2.180.0090.00618.67
8.2.170.0100.01322.96
8.2.160.0070.00720.57
8.2.150.0040.01524.18
8.2.140.0090.00024.66
8.2.130.0150.00326.16
8.2.120.0090.00019.36
8.2.110.0070.00321.13
8.2.100.0070.00418.34
8.2.90.0000.00819.36
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0080.00318.07
8.2.40.0080.00018.28
8.2.30.0070.00018.25
8.2.20.0050.00317.63
8.2.10.0000.00718.05
8.2.00.0040.00419.50
8.1.280.0000.01525.92
8.1.270.0090.01223.80
8.1.260.0040.01426.35
8.1.250.0030.00628.09
8.1.240.0130.01021.36
8.1.230.0040.00717.83
8.1.220.0040.00417.79
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0040.00418.71
8.1.160.0000.00722.09
8.1.150.0040.00418.50
8.1.140.0000.00817.39
8.1.130.0050.00217.87
8.1.120.0040.00417.38
8.1.110.0000.00717.45
8.1.100.0000.00717.34
8.1.90.0040.00417.35
8.1.80.0040.00417.45
8.1.70.0030.00517.43
8.1.60.0080.00017.45
8.1.50.0040.00417.56
8.1.40.0000.00817.59
8.1.30.0000.00817.53
8.1.20.0060.00317.63
8.1.10.0080.00017.55
8.1.00.0040.00417.55
8.0.300.0000.00718.77
8.0.290.0030.00516.88
8.0.280.0080.00018.36
8.0.270.0000.00717.16
8.0.260.0070.00017.23
8.0.250.0030.00317.05
8.0.240.0040.00417.04
8.0.230.0040.00417.02
8.0.220.0030.00316.87
8.0.210.0070.00016.86
8.0.200.0050.00316.97
8.0.190.0000.00717.08
8.0.180.0000.00716.91
8.0.170.0000.00816.88
8.0.160.0040.00417.08
8.0.150.0040.00416.87
8.0.140.0040.00416.92
8.0.130.0000.00813.39
8.0.120.0040.00416.87
8.0.110.0080.00016.85
8.0.100.0040.00416.78
8.0.90.0000.00817.02
8.0.80.0110.00416.85
8.0.70.0040.00416.79
8.0.60.0040.00417.03
8.0.50.0000.00816.96
8.0.30.0180.00317.18
8.0.20.0110.00817.40
8.0.10.0040.00416.92
8.0.00.0110.00916.81
7.4.330.0030.00215.15
7.4.320.0030.00316.61
7.4.300.0030.00316.52
7.4.290.0070.00016.58
7.4.280.0090.00016.40
7.4.270.0030.00316.59
7.4.260.0040.00416.48
7.4.250.0070.00016.52
7.4.240.0040.00416.54
7.4.230.0000.00716.48
7.4.220.0060.01216.45
7.4.210.0100.01016.55
7.4.200.0000.00816.62
7.4.160.0120.00316.63
7.4.150.0070.01017.40
7.4.140.0070.01017.86
7.4.130.0120.00616.71
7.4.120.0140.00516.63
7.4.110.0140.00716.64
7.4.100.0040.01316.73
7.4.90.0070.01016.45
7.4.80.0090.00919.39
7.4.70.0110.00616.56
7.4.60.0070.01316.47
7.4.50.0040.00416.41
7.4.40.0100.00616.49
7.4.30.0080.00816.43
7.4.10.0090.00914.80
7.4.00.0070.00815.12
7.3.330.0000.00513.05
7.3.320.0000.00513.16
7.3.310.0000.00716.32
7.3.300.0070.00016.34
7.3.290.0000.01516.39
7.3.280.0080.00916.30
7.3.270.0130.01517.40
7.3.260.0090.00916.69
7.3.250.0130.01116.58
7.3.240.0130.00316.25
7.3.230.0090.00916.48
7.3.210.0150.00316.42
7.3.200.0120.00319.39
7.3.190.0100.00716.46
7.3.180.0130.00716.53
7.3.170.0110.00416.36
7.3.160.0030.01316.43
7.3.130.0080.01215.13
7.3.120.0080.01014.75
7.3.110.0120.00615.05
7.3.100.0040.01114.71
7.3.90.0100.00714.85
7.3.80.0090.00315.22
7.3.70.0110.00414.99
7.3.60.0060.00914.67
7.3.50.0030.00914.95
7.3.40.0030.01014.91
7.3.30.0070.00714.71
7.3.20.0070.00716.65
7.3.10.0020.01116.67
7.3.00.0080.00816.62
7.2.330.0110.01116.38
7.2.320.0100.00716.66
7.2.310.0150.00316.70
7.2.300.0060.01316.76
7.2.290.0030.01316.32
7.2.260.0070.01015.22
7.2.250.0000.01815.19
7.2.240.0090.00315.11
7.2.230.0040.01114.55
7.2.220.0000.01515.16
7.2.210.0030.01014.79
7.2.200.0030.01014.81
7.2.190.0060.00914.97
7.2.180.0100.00714.94
7.2.170.0040.00915.01
7.2.160.0060.01014.88
7.2.150.0100.00716.89
7.2.140.0050.00516.95
7.2.130.0050.00816.96
7.2.120.0100.00516.98
7.2.110.0030.00916.89
7.2.100.0030.01216.82
7.2.90.0090.00616.90
7.2.80.0040.01216.69
7.2.70.0110.00516.87
7.2.60.0100.00416.82
7.2.50.0070.00716.87
7.2.40.0090.00816.87
7.2.30.0080.01016.94
7.2.20.0080.00916.79
7.2.10.0040.01317.01
7.2.00.0040.00917.50
7.1.330.0100.00615.91
7.1.320.0000.01415.76
7.1.310.0090.00615.82
7.1.300.0040.01115.69
7.1.290.0080.00415.39
7.1.280.0030.00715.80
7.1.270.0070.00715.94
7.1.260.0030.01015.60
7.1.250.0020.01315.84
7.1.240.0060.00615.48
7.1.230.0110.00415.95
7.1.220.0030.00615.49
7.1.210.0080.00315.79
7.1.200.0060.00715.58
7.1.190.0070.01015.80
7.1.180.0040.00815.75
7.1.170.0000.00915.86
7.1.160.0030.01015.82
7.1.150.0180.00015.84
7.1.140.0060.00315.91
7.1.130.0030.01215.96
7.1.120.0000.01315.78
7.1.110.0040.00815.80
7.1.100.0030.00916.93
7.1.90.0080.00315.84
7.1.80.0000.01215.69
7.1.70.0080.00916.42
7.1.60.0090.00917.58
7.1.50.0100.01016.05
7.1.40.0000.01615.63
7.1.30.0080.00815.83
7.1.20.0100.00315.84
7.1.10.0100.00015.83
7.1.00.0040.05419.13
7.0.330.0000.01315.43
7.0.320.0030.01115.46
7.0.310.0030.00915.40
7.0.300.0030.00815.50
7.0.290.0090.00315.26
7.0.280.0080.00415.44
7.0.270.0110.00315.36
7.0.260.0040.00815.30
7.0.250.0040.01115.61
7.0.240.0040.00415.43
7.0.230.0080.00015.54
7.0.220.0000.01415.49
7.0.210.0040.01115.16
7.0.200.0060.00616.13
7.0.190.0000.01115.45
7.0.180.0060.00615.18
7.0.170.0030.01015.39
7.0.160.0060.00615.41
7.0.150.0140.00315.07
7.0.140.0060.03918.62
7.0.130.0060.01115.56
7.0.120.0110.00515.39
7.0.110.0380.03217.70
7.0.100.0120.04317.68
7.0.90.0210.02617.55
7.0.80.0140.02017.67
7.0.70.0100.02117.63
7.0.60.0050.02517.68
7.0.50.0160.01817.95
7.0.40.0050.02216.86
7.0.30.0080.02016.74
7.0.20.0050.03016.80
7.0.10.0030.03116.87
7.0.00.0080.02116.73
5.6.400.0000.01214.30
5.6.390.0070.00714.15
5.6.380.0070.00714.55
5.6.370.0120.00314.66
5.6.360.0030.01014.82
5.6.350.0090.00613.95
5.6.340.0070.00314.73
5.6.330.0040.00814.54
5.6.320.0000.00814.79
5.6.310.0080.00814.60
5.6.300.0000.01014.55
5.6.290.0040.01114.57
5.6.280.0040.04017.69
5.6.270.0120.00314.36
5.6.260.0130.00314.48
5.6.250.0060.04317.47
5.6.240.0040.03617.51
5.6.230.0050.02317.45
5.6.220.0030.02517.44
5.6.210.0040.02617.61
5.6.200.0020.02717.74
5.6.190.0030.02617.75
5.6.180.0040.02417.64
5.6.170.0030.02717.73
5.6.160.0020.02817.75
5.6.150.0050.02517.55
5.6.140.0020.02617.68
5.6.130.0050.02517.81
5.6.120.0030.04317.67
5.6.110.0080.04417.55
5.6.100.0050.02317.85
5.6.90.0030.02917.65
5.6.80.0030.02517.37
5.6.70.0050.02517.34
5.6.60.0080.02017.43
5.6.50.0080.02017.46
5.6.40.0050.02317.36
5.6.30.0120.01717.39
5.6.20.0010.02417.35
5.6.10.0060.03617.24
5.6.00.0020.02417.24
5.5.380.0050.02717.21
5.5.370.0090.02317.47
5.5.360.0060.02017.36
5.5.350.0100.01817.32
5.5.340.0080.02017.69
5.5.330.0090.02417.63
5.5.320.0050.03017.42
5.5.310.0050.02317.69
5.5.300.0050.02617.45
5.5.290.0050.02617.56
5.5.280.0020.03817.64
5.5.270.0060.03817.41
5.5.260.0020.02617.74
5.5.250.0050.02317.34
5.5.240.0030.02317.29
5.5.230.0120.03717.10
5.5.220.0050.02417.38
5.5.210.0100.02017.21
5.5.200.0050.02417.16
5.5.190.0060.01917.20
5.5.180.0020.02617.20
5.5.170.0030.01013.80
5.5.160.0060.04217.15
5.5.150.0050.04017.04
5.5.140.0090.03917.27
5.5.130.0070.03717.16
5.5.120.0030.03317.22
5.5.110.0100.01817.26
5.5.100.0070.01816.86
5.5.90.0090.03517.30
5.5.80.0040.04617.20
5.5.70.0030.04517.18
5.5.60.0030.04016.96
5.5.50.0070.04217.13
5.5.40.0050.04017.28
5.5.30.0100.03117.09
5.5.20.0070.04517.13
5.5.10.0100.03817.11
5.5.00.0050.04516.92
5.4.450.0050.02216.46
5.4.440.0070.01816.34
5.4.430.0020.02416.38
5.4.420.0030.02916.37
5.4.410.0030.02016.27
5.4.400.0030.02016.13
5.4.390.0080.03016.16
5.4.380.0110.02016.22
5.4.370.0030.02016.24
5.4.360.0000.02516.26
5.4.350.0020.03016.17
5.4.340.0070.01616.14
5.4.330.0110.00013.35
5.4.320.0030.03916.21
5.4.310.0080.03816.28
5.4.300.0050.02316.18
5.4.290.0080.03016.26
5.4.280.0000.04016.18
5.4.270.0030.02616.21
5.4.260.0050.04316.13
5.4.250.0030.03916.14
5.4.240.0090.01616.17
5.4.230.0000.04016.18
5.4.220.0050.04116.17
5.4.210.0070.04016.18
5.4.200.0090.03516.28
5.4.190.0050.03516.18
5.4.180.0070.04716.17
5.4.170.0090.03716.23
5.4.160.0040.03816.25
5.4.150.0050.03116.21
5.4.140.0060.03314.88
5.4.130.0020.04014.93
5.4.120.0050.04114.82
5.4.110.0110.03614.90
5.4.100.0130.03114.86
5.4.90.0070.04014.77
5.4.80.0080.03414.93
5.4.70.0030.04014.88
5.4.60.0030.03714.93
5.4.50.0070.03414.91
5.4.40.0050.02714.93
5.4.30.0090.03314.92
5.4.20.0060.03314.76
5.4.10.0090.03614.80
5.4.00.0020.04114.63
5.3.290.0100.03513.91
5.3.280.0020.03513.97
5.3.270.0070.03513.87
5.3.260.0030.02813.95
5.3.250.0070.04113.99
5.3.240.0100.03614.02
5.3.230.0030.04213.94
5.3.220.0090.03313.91
5.3.210.0060.02313.92
5.3.200.0120.03113.85
5.3.190.0020.02813.90
5.3.180.0070.04013.85
5.3.170.0080.03813.90
5.3.160.0030.03313.91
5.3.150.0060.02313.92
5.3.140.0000.04613.89
5.3.130.0070.03713.89
5.3.120.0030.02513.99
5.3.110.0080.04113.92
5.3.100.0020.04513.74
5.3.90.0010.04113.62
5.3.80.0090.02713.62
5.3.70.0060.03013.71
5.3.60.0110.03513.72
5.3.50.0050.03913.67
5.3.40.0080.03713.66
5.3.30.0070.03913.58
5.3.20.0080.03713.49
5.3.10.0020.04213.47
5.3.00.0050.04013.41
5.2.170.0030.06311.09
5.2.160.0030.06011.04
5.2.150.0070.06310.93
5.2.140.0030.04310.92
5.2.130.0030.06011.04
5.2.120.0100.06011.11
5.2.110.0070.06011.04
5.2.100.0000.06711.16
5.2.90.0130.05311.01
5.2.80.0030.03711.09
5.2.70.0030.06011.12
5.2.60.0000.04310.97
5.2.50.0030.06311.09
5.2.40.0130.05010.92
5.2.30.0030.06310.92
5.2.20.0070.06310.88
5.2.10.0030.06310.93
5.2.00.0070.05710.66
5.1.60.0030.05310.06
5.1.50.0000.0609.98
5.1.40.0030.0579.93
5.1.30.0030.05010.47
5.1.20.0030.05710.25
5.1.10.0070.05010.22
5.1.00.0070.05310.13
5.0.50.0100.0338.70
5.0.40.0030.0438.29
5.0.30.0030.0538.17
5.0.20.0100.0278.29
5.0.10.0000.0478.14
5.0.00.0030.0338.21
4.4.90.0000.0337.30
4.4.80.0000.0377.30
4.4.70.0030.0177.30
4.4.60.0070.0337.30
4.4.50.0030.0207.30
4.4.40.0070.0507.30
4.4.30.0070.0337.30
4.4.20.0030.0237.30
4.4.10.0000.0377.30
4.4.00.0000.0577.30
4.3.110.0070.0307.30
4.3.100.0030.0337.30
4.3.90.0070.0307.30
4.3.80.0030.0507.30
4.3.70.0000.0207.30
4.3.60.0030.0377.30
4.3.50.0100.0207.30
4.3.40.0100.0477.30
4.3.30.0030.0277.30
4.3.20.0000.0377.30
4.3.10.0030.0337.30
4.3.00.0000.0337.30

preferences:
49.25 ms | 400 KiB | 5 Q