3v4l.org

run code in 300+ PHP versions simultaneously
<?php $allowedIps = ['a' => '123.123.123.123']; $arrIps = array_merge($allowedIps, array('127.0.0.1', 'fe80::1', '::1') ); if ( in_array('123.123.123.123', $arrIps) ) { echo 'OK'; }

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.70.0110.00716.58
8.3.60.0120.00918.40
8.3.50.0100.00921.14
8.3.40.0150.00018.84
8.3.30.0150.00418.99
8.3.20.0070.00020.13
8.3.10.0040.00423.71
8.3.00.0070.00719.25
8.2.180.0100.00716.50
8.2.170.0040.01122.96
8.2.160.0070.00720.52
8.2.150.0100.01024.18
8.2.140.0080.00024.66
8.2.130.0140.00026.16
8.2.120.0000.00821.01
8.2.110.0070.00320.78
8.2.100.0060.00617.78
8.2.90.0040.00417.91
8.2.80.0040.00418.22
8.2.70.0090.00017.80
8.2.60.0060.00317.93
8.2.50.0050.00518.10
8.2.40.0080.00020.42
8.2.30.0000.00817.86
8.2.20.0060.00317.61
8.2.10.0070.00018.04
8.2.00.0060.00317.60
8.1.280.0140.00425.92
8.1.270.0110.00722.07
8.1.260.0000.00826.35
8.1.250.0070.00728.09
8.1.240.0040.00422.47
8.1.230.0110.00020.99
8.1.220.0030.00717.74
8.1.210.0000.00818.93
8.1.200.0000.00817.23
8.1.190.0060.00317.23
8.1.180.0080.00018.10
8.1.170.0080.00018.38
8.1.160.0050.00222.17
8.1.150.0000.00718.72
8.1.140.0040.00417.30
8.1.130.0070.00017.69
8.1.120.0040.00417.43
8.1.110.0040.00417.29
8.1.100.0030.00417.39
8.1.90.0040.00417.41
8.1.80.0000.00717.23
8.1.70.0000.00717.32
8.1.60.0030.00617.39
8.1.50.0040.00417.32
8.1.40.0080.00017.32
8.1.30.0030.00617.50
8.1.20.0030.00517.48
8.1.10.0040.00417.38
8.1.00.0030.00617.51
8.0.300.0070.00020.03
8.0.290.0000.00716.63
8.0.280.0070.00018.35
8.0.270.0000.00717.24
8.0.260.0000.00617.18
8.0.250.0040.00416.88
8.0.240.0030.00516.84
8.0.230.0070.00016.83
8.0.220.0030.00316.73
8.0.210.0030.00316.77
8.0.200.0000.00616.89
8.0.190.0050.00316.83
8.0.180.0100.00016.89
8.0.170.0000.00716.92
8.0.160.0040.00316.75
8.0.150.0070.00016.69
8.0.140.0000.00716.84
8.0.130.0000.00613.21
8.0.120.0020.00516.67
8.0.110.0000.00716.73
8.0.100.0040.00416.68
8.0.90.0000.00816.71
8.0.80.0060.01016.88
8.0.70.0000.00716.64
8.0.60.0040.00416.77
8.0.50.0040.00416.84
8.0.30.0110.01117.02
8.0.20.0130.00617.40
8.0.10.0070.00016.87
8.0.00.0130.00616.75
7.4.330.0000.00615.02
7.4.320.0060.00016.44
7.4.300.0000.00616.53
7.4.290.0070.00016.41
7.4.280.0030.00316.55
7.4.270.0070.00016.41
7.4.260.0040.00416.55
7.4.250.0000.00816.39
7.4.240.0040.00416.46
7.4.230.0000.00716.53
7.4.220.0070.01016.55
7.4.210.0070.00716.52
7.4.200.0030.00316.31
7.4.160.0000.01516.61
7.4.150.0160.00317.40
7.4.140.0070.00917.86
7.4.130.0110.00916.46
7.4.120.0080.00816.40
7.4.110.0100.01416.40
7.4.100.0040.01416.41
7.4.90.0150.00316.45
7.4.80.0130.01019.39
7.4.70.0130.00316.27
7.4.60.0140.00316.51
7.4.50.0020.00216.25
7.4.40.0100.00616.51
7.4.30.0060.01016.46
7.4.00.0110.00715.07
7.3.330.0020.00212.80
7.3.320.0030.00312.99
7.3.310.0040.00416.24
7.3.300.0030.00316.13
7.3.290.0060.01016.16
7.3.280.0050.01116.13
7.3.270.0120.00617.40
7.3.260.0100.00716.43
7.3.250.0080.01016.30
7.3.240.0040.01816.48
7.3.230.0150.00316.39
7.3.210.0100.00716.39
7.3.200.0080.00819.39
7.3.190.0080.00816.33
7.3.180.0060.00916.28
7.3.170.0090.01016.27
7.3.160.0060.01016.39
7.2.330.0150.00316.43
7.2.320.0130.01016.45
7.2.310.0120.00916.73
7.2.300.0070.00816.65
7.2.290.0110.01116.57
7.2.00.0110.00319.45
7.1.100.0070.00718.27
7.1.70.0000.01017.06
7.1.60.0090.01519.32
7.1.50.0220.02216.69
7.1.00.0100.07022.43
7.0.200.0040.00416.79
7.0.140.0030.09022.21
7.0.60.0070.04019.97
7.0.50.0130.06017.81
7.0.40.0130.08319.98
7.0.30.0230.04020.16
7.0.20.0270.06720.13
7.0.10.0030.05020.30
7.0.00.0070.07719.99
5.6.280.0000.07721.13
5.6.210.0070.08320.71
5.6.200.0070.06318.19
5.6.190.0030.07320.56
5.6.180.0030.04720.67
5.6.170.0270.06320.40
5.6.160.0070.08720.48
5.6.150.0070.05018.11
5.6.140.0000.09018.21
5.6.130.0030.08718.18
5.6.120.0070.06720.96
5.6.110.0130.07721.11
5.6.100.0100.06721.00
5.6.90.0070.08321.05
5.6.80.0100.07320.52
5.6.70.3630.03720.52
5.5.350.0370.07320.46
5.5.340.0000.04718.01
5.5.330.0070.04020.34
5.5.320.0330.07320.34
5.5.310.0130.04020.33
5.5.300.0030.09017.98
5.5.290.0070.08017.92
5.5.280.0030.08320.73
5.5.270.0130.04720.76
5.5.260.0130.07020.75
5.5.250.0070.04720.65
5.5.240.2500.04320.27
5.4.450.0800.07319.14
5.4.440.0830.06319.27
5.4.430.0800.07319.31
5.4.420.0870.05319.39
5.4.410.0770.06019.42
5.4.400.0800.06318.82
5.4.390.0530.05319.00
5.4.380.1000.04718.95
5.4.370.0930.05719.14
5.4.360.0830.05319.14
5.4.350.0070.06318.99
5.4.340.0070.03311.96
5.4.320.0040.03812.45
5.4.310.0050.03812.45
5.4.300.0070.03512.45
5.4.290.0040.03912.45
5.4.280.0070.03412.34
5.4.270.0080.03912.34
5.4.260.0070.03612.35
5.4.250.0050.03812.34
5.4.240.0070.03612.34
5.4.230.0060.03712.34
5.4.220.0060.03712.34
5.4.210.0050.03512.34
5.4.200.0060.03912.34
5.4.190.0050.03712.34
5.4.180.0060.03512.33
5.4.170.0080.03412.35
5.4.160.0050.03612.34
5.4.150.0080.03412.34
5.4.140.0020.04112.02
5.4.130.0070.03312.01
5.4.120.0050.03611.97
5.4.110.0080.03311.96
5.4.100.0060.03611.96
5.4.90.0030.04011.96
5.4.80.0030.03911.96
5.4.70.0040.03611.96
5.4.60.0020.03711.96
5.4.50.0080.03211.96
5.4.40.0030.03611.95
5.4.30.0070.03411.95
5.4.20.0080.03311.95
5.4.10.0060.03611.95
5.4.00.0070.03511.43
5.3.290.0070.04312.80
5.3.280.0080.03512.70
5.3.270.0060.03812.73
5.3.260.0050.03912.72
5.3.250.0070.03612.72
5.3.240.0050.03812.72
5.3.230.0050.03812.71
5.3.220.0040.03812.68
5.3.210.0050.04012.68
5.3.200.0060.03512.68
5.3.190.0070.03512.68
5.3.180.0100.03212.68
5.3.170.0090.03412.67
5.3.160.0070.03512.67
5.3.150.0050.03712.67
5.3.140.0040.03812.66
5.3.130.0100.03412.65
5.3.120.0060.03812.66
5.3.110.0070.04012.66
5.3.100.0070.03612.12
5.3.90.0060.03612.09
5.3.80.0050.03812.07
5.3.70.0070.04612.07
5.3.60.0080.03412.06
5.3.50.0040.03812.00
5.3.40.0040.03812.00
5.3.30.0050.03411.95
5.3.20.0080.03611.73
5.3.10.0060.03411.70
5.3.00.0050.03611.68
5.2.170.0040.0309.18
5.2.160.0040.0299.18
5.2.150.0030.0329.18
5.2.140.0040.0309.18
5.2.130.0070.0269.14
5.2.120.0040.0289.14
5.2.110.0060.0279.14
5.2.100.0030.0309.14
5.2.90.0040.0309.14
5.2.80.0040.0309.14
5.2.70.0060.0289.14
5.2.60.0050.0309.09
5.2.50.0040.0309.05
5.2.40.0070.0259.03
5.2.30.0090.0259.02
5.2.20.0030.0299.01
5.2.10.0060.0268.92
5.2.00.0060.0278.79
5.1.60.0030.0258.07
5.1.50.0040.0258.06
5.1.40.0050.0238.05
5.1.30.0030.0278.40
5.1.20.0030.0278.42
5.1.10.0050.0248.14
5.1.00.0020.0278.14
5.0.50.0040.0196.63
5.0.40.0040.0186.48
5.0.30.0030.0376.29
5.0.20.0030.0226.26
5.0.10.0050.0246.23
5.0.00.0090.0346.23
4.4.90.0030.0224.78
4.4.80.0030.0184.75
4.4.70.0020.0164.76
4.4.60.0040.0144.75
4.4.50.0030.0154.77
4.4.40.0050.0224.71
4.4.30.0030.0154.76
4.4.20.0040.0144.84
4.4.10.0010.0174.85
4.4.00.0020.0254.76
4.3.110.0040.0144.67
4.3.100.0050.0134.66
4.3.90.0020.0154.64
4.3.80.0030.0234.58
4.3.70.0040.0134.63
4.3.60.0030.0144.63
4.3.50.0030.0154.63
4.3.40.0010.0254.54
4.3.30.0020.0163.28
4.3.20.0030.0143.26
4.3.10.0030.0143.22
4.3.00.0100.0237.11

preferences:
60.94 ms | 401 KiB | 5 Q