3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach(array( '', 'x', ' ', '0.0.0.0', '255.255.255.255', // Some bad IP '127.0.0.1', // localhost '10.0.0.0', '192.168.0.1', 'fe80::414a:a44e:53f2:e694%21', // Private IP addresses '8.8.8.8', // Good ) as $ip) { echo "ip => "; var_dump(filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_IPV6 | FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)); }

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.01418.30
8.3.50.0120.00722.12
8.3.40.0090.00618.71
8.3.30.0100.00319.02
8.3.20.0040.00420.23
8.3.10.0080.00021.83
8.3.00.0050.00322.36
8.2.180.0090.00916.38
8.2.170.0040.01122.96
8.2.160.0130.00720.77
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0050.00319.48
8.2.110.0100.00022.11
8.2.100.0040.00717.91
8.2.90.0030.00619.05
8.2.80.0080.00017.97
8.2.70.0030.00617.50
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0040.00418.03
8.2.30.0030.00817.83
8.2.20.0040.00417.43
8.2.10.0070.00017.46
8.2.00.0040.00417.64
8.1.280.0120.00625.92
8.1.270.0090.00022.06
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00020.80
8.1.230.0120.00017.42
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0010.00817.00
8.1.190.0000.00717.28
8.1.180.0040.00418.10
8.1.170.0050.00318.64
8.1.160.0040.00421.94
8.1.150.0000.00718.49
8.1.140.0040.00417.31
8.1.130.0000.00717.75
8.1.120.0040.00417.27
8.1.110.0050.00317.22
8.1.100.0070.00017.32
8.1.90.0000.00717.21
8.1.80.0070.00017.32
8.1.70.0030.00317.20
8.1.60.0000.00817.40
8.1.50.0030.00617.29
8.1.40.0080.00017.28
8.1.30.0030.00617.47
8.1.20.0040.00417.52
8.1.10.0000.00717.42
8.1.00.0070.00017.39
8.0.300.0040.00418.77
8.0.290.0000.00916.63
8.0.280.0000.00718.36
8.0.270.0000.00717.30
8.0.260.0030.00316.73
8.0.250.0040.00416.90
8.0.240.0040.00416.76
8.0.230.0030.00316.74
8.0.220.0080.00016.77
8.0.210.0000.00716.83
8.0.200.0030.00316.81
8.0.190.0080.00016.88
8.0.180.0030.00416.90
8.0.170.0000.00816.88
8.0.160.0000.00716.70
8.0.150.0040.00316.83
8.0.140.0030.00316.67
8.0.130.0000.00613.23
8.0.120.0040.00416.79
8.0.110.0040.00416.75
8.0.100.0080.00016.67
8.0.90.0050.00316.66
8.0.80.0070.00716.79
8.0.70.0050.00316.85
8.0.60.0070.00016.77
8.0.50.0000.00716.67
8.0.30.0160.00917.06
8.0.20.0090.00817.40
8.0.10.0030.00316.77
8.0.00.0140.00916.61
7.4.330.0000.00515.00
7.4.320.0030.00316.38
7.4.300.0070.00216.39
7.4.290.0030.00316.31
7.4.280.0030.00316.50
7.4.270.0000.00716.48
7.4.260.0000.00716.35
7.4.250.0020.00516.36
7.4.240.0020.00616.48
7.4.230.0030.00316.48
7.4.220.0120.00616.53
7.4.210.0090.00716.40
7.4.200.0000.00716.56
7.4.190.0040.00416.57
7.4.160.0070.01116.57
7.4.150.0110.00617.40
7.4.140.0110.00817.86
7.4.130.0080.01016.41
7.4.120.0130.00916.42
7.4.110.0130.00716.32
7.4.100.0100.00716.39
7.4.90.0050.01116.32
7.4.80.0060.01119.39
7.4.70.0150.00616.35
7.4.60.0150.00016.52
7.4.50.0030.00616.52
7.4.40.0060.00622.77
7.4.30.0060.00916.48
7.4.00.0000.01614.86
7.3.330.0030.00312.98
7.3.320.0030.00313.08
7.3.310.0030.00316.12
7.3.300.0030.00316.06
7.3.290.0080.00816.25
7.3.280.0090.00716.27
7.3.270.0120.00817.40
7.3.260.0040.01416.42
7.3.250.0090.00816.44
7.3.240.0190.00016.45
7.3.230.0110.00716.53
7.3.210.0130.00316.25
7.3.200.0130.01019.39
7.3.190.0160.00616.58
7.3.180.0060.01116.12
7.3.170.0070.01116.45
7.3.160.0160.00616.20
7.3.120.0030.01214.93
7.3.00.0060.01016.48
7.2.330.0120.00616.54
7.2.320.0090.00916.78
7.2.310.0060.01016.59
7.2.300.0120.00616.62
7.2.290.0030.01416.57
7.2.130.0030.00716.87
7.2.120.0120.00316.99
7.2.110.0070.00716.82
7.2.100.0080.00816.82
7.2.90.0090.00616.72
7.2.80.0120.00616.56
7.2.70.0060.00916.90
7.2.60.0000.01616.95
7.2.50.0040.00716.87
7.2.40.0060.00917.00
7.2.30.0040.00816.90
7.2.20.0090.00616.92
7.2.10.0030.01016.82
7.2.00.0040.01218.25
7.1.250.0060.00315.47
7.1.240.0000.01115.45
7.1.230.0070.00715.59
7.1.220.0040.00415.68
7.1.210.0040.01115.77
7.1.200.0020.01215.80
7.1.190.0130.00315.70
7.1.180.0030.01015.80
7.1.170.0040.01115.76
7.1.160.0030.00915.67
7.1.150.0070.00715.41
7.1.140.0080.00815.34
7.1.130.0120.00015.71
7.1.120.0070.00715.91
7.1.110.0030.00615.57
7.1.100.0030.01016.85
7.1.90.0040.00415.44
7.1.80.0090.00315.89
7.1.70.0040.01116.35
7.1.60.0080.00917.67
7.1.50.0060.01116.14
7.1.40.0030.00915.83
7.1.30.0040.00715.46
7.1.20.0000.01115.59
7.1.10.0030.01015.78
7.1.00.0060.03819.16
7.0.330.0070.00715.50
7.0.320.0070.00715.15
7.0.310.0080.00615.24
7.0.300.0030.00615.11
7.0.290.0100.00615.19
7.0.280.0160.00015.02
7.0.270.0140.00015.20
7.0.260.0060.00615.04
7.0.250.0080.00415.48
7.0.240.0030.01015.30
7.0.230.0040.00815.45
7.0.220.0080.00415.32
7.0.210.0150.00015.50
7.0.200.0090.00416.07
7.0.190.0060.00615.29
7.0.180.0030.00715.31
7.0.170.0040.00415.33
7.0.160.0030.00915.28
7.0.150.0100.00015.30
7.0.140.0020.04418.75
7.0.130.0030.00615.34
7.0.120.0030.00615.48
7.0.110.0150.03217.71
7.0.100.0070.05017.60
7.0.90.0080.04717.52
7.0.80.0080.04517.63
7.0.70.0100.04217.69
7.0.60.0100.04617.66
7.0.50.0090.04017.67
7.0.40.0130.01616.84
7.0.30.0070.04216.75
7.0.20.0050.03216.66
7.0.10.0070.04516.84
7.0.00.0040.02916.90
5.6.380.0040.01114.02
5.6.370.0140.00014.42
5.6.360.0080.00414.35
5.6.350.0080.00614.09
5.6.340.0070.00714.49
5.6.330.0090.00314.14
5.6.320.0030.00913.96
5.6.310.0040.00814.21
5.6.300.0030.00814.27
5.6.290.0030.00714.54
5.6.280.0050.04017.59
5.6.270.0060.00614.43
5.6.260.0100.03817.26
5.6.250.0050.03317.58
5.6.240.0080.04217.48
5.6.230.0080.03917.38
5.6.220.0080.04017.54
5.6.210.0050.03717.46
5.6.200.0130.02917.62
5.6.190.0050.04217.61
5.6.180.0050.04017.73
5.6.170.0070.04217.69
5.6.160.0030.05017.55
5.6.150.0020.03517.76
5.6.140.0060.04117.45
5.6.130.0100.03817.83
5.6.120.0050.03017.53
5.6.110.0090.04617.67
5.6.100.0100.03117.57
5.6.90.0090.03717.48
5.6.80.0070.03317.48
5.6.70.0090.03917.46
5.6.60.0080.04417.31
5.6.50.0080.04117.25
5.6.40.0100.03817.26
5.6.30.0050.04417.40
5.6.20.0150.03317.26
5.6.10.0080.04417.33
5.6.00.0050.04517.38
5.5.380.0130.03815.54
5.5.370.0050.03615.85
5.5.360.0080.04315.64
5.5.350.0080.02715.50
5.5.340.0050.04216.03
5.5.330.0060.04115.98
5.5.320.0030.03416.07
5.5.310.0030.04116.14
5.5.300.0070.03515.99
5.5.290.0070.04015.99
5.5.280.0070.04215.93
5.5.270.0110.03616.14
5.5.260.0070.02816.06
5.5.250.0080.03115.74
5.5.240.0080.03815.77
5.5.230.0120.02815.73
5.5.220.0030.04415.68
5.5.210.0080.02115.74
5.5.200.0120.03415.65
5.5.190.0030.03715.64
5.5.180.0100.03815.70
5.5.170.0030.00810.87
5.5.160.0030.04515.61
5.5.150.0060.04315.72
5.5.140.0070.04415.77
5.5.130.0070.04015.77
5.5.120.0030.03615.63
5.5.110.0050.03815.63
5.5.100.0050.02715.62
5.5.90.0100.02515.47
5.5.80.0070.03515.47
5.5.70.0040.04115.56
5.5.60.0100.03215.49
5.5.50.0030.03515.54
5.5.40.0100.02315.58
5.5.30.0080.03815.60
5.5.20.0050.04415.48
5.5.10.0030.04315.56
5.5.00.0030.03915.52
5.4.450.0020.03015.21
5.4.440.0020.03715.23
5.4.430.0080.03515.27
5.4.420.0050.04115.28
5.4.410.0080.02615.16
5.4.400.0050.03315.07
5.4.390.0070.02815.02
5.4.380.0070.03814.94
5.4.370.0020.04214.93
5.4.360.0070.03814.95
5.4.350.0060.02414.94
5.4.340.0140.03514.91
5.4.330.0080.00010.95
5.4.320.0070.03715.01
5.4.310.0080.03814.92
5.4.300.0100.03714.99
5.4.290.0050.03815.14
5.4.280.0090.03914.84
5.4.270.0050.02314.96
5.4.260.0050.04415.06
5.4.250.0060.03815.13
5.4.240.0080.03315.04
5.4.230.0100.02514.93
5.4.220.0090.03814.93
5.4.210.0060.03814.94
5.4.200.0100.03314.92
5.4.190.0040.04314.96
5.4.180.0030.04415.14
5.4.170.0070.03715.11
5.4.160.0030.04114.83
5.4.150.0060.03215.12
5.4.140.0030.02213.75
5.4.130.0070.03713.54
5.4.120.0060.03113.74
5.4.110.0000.04113.64
5.4.100.0040.04013.83
5.4.90.0110.03513.67
5.4.80.0050.03713.52
5.4.70.0000.02913.54
5.4.60.0050.03513.50
5.4.50.0050.02913.78
5.4.40.0030.03713.55
5.4.30.0050.02513.64
5.4.20.0050.03813.71
5.4.10.0110.01813.43
5.4.00.0070.02813.41
5.3.290.0030.04512.44
5.3.280.0030.04312.53
5.3.270.0030.02812.46
5.3.260.0030.02512.39
5.3.250.0030.04012.46
5.3.240.0030.03812.48
5.3.230.0000.02612.39
5.3.220.0030.04212.48
5.3.210.0050.04312.42
5.3.200.0070.03512.29
5.3.190.0030.02412.31
5.3.180.0050.04012.56
5.3.170.0070.03512.56
5.3.160.0020.03512.49
5.3.150.0030.04112.47
5.3.140.0030.04112.47
5.3.130.0050.03812.29
5.3.120.0070.03612.44
5.3.110.0060.04312.27
5.3.100.0080.03312.17
5.3.90.0080.03612.22
5.3.80.0070.02312.06
5.3.70.0100.03512.22
5.3.60.0050.03712.17
5.3.50.0030.04011.96
5.3.40.0060.03812.16
5.3.30.0070.03612.12
5.3.20.0050.04011.97
5.3.10.0080.03811.79
5.3.00.0080.03411.73
5.2.170.0090.02310.69
5.2.160.0020.02210.61
5.2.150.0110.01610.71
5.2.140.0050.03110.61
5.2.130.0050.03510.67
5.2.120.0100.02810.70
5.2.110.0010.03510.52
5.2.100.0020.02010.60
5.2.90.0040.02710.64
5.2.80.0030.03510.46
5.2.70.0050.03210.60
5.2.60.0030.03010.43
5.2.50.0050.02810.60
5.2.40.0030.03510.69
5.2.30.0060.03010.59
5.2.20.0050.03110.62
5.2.10.0030.03010.56
5.2.00.0070.03010.55
5.1.60.0040.02510.04
5.1.50.0050.02610.15
5.1.40.0030.03010.06
5.1.30.0050.03010.18
5.1.20.0000.03410.11
5.1.10.0030.02910.25
5.1.00.0030.02810.17
5.0.50.0040.02310.04
5.0.40.0030.02410.04
5.0.30.0050.03110.04
5.0.20.0020.01210.04
5.0.10.0020.02410.04
5.0.00.0050.02710.04
4.4.90.0000.01310.04
4.4.80.0070.01510.04
4.4.70.0070.01310.04
4.4.60.0000.01310.04
4.4.50.0050.01810.04
4.4.40.0020.02710.04
4.4.30.0020.01810.04
4.4.20.0020.02210.04
4.4.10.0030.01410.04
4.4.00.0020.02710.04
4.3.110.0000.01910.04
4.3.100.0030.01210.04
4.3.90.0000.01210.04
4.3.80.0000.03010.04
4.3.70.0000.02010.04
4.3.60.0020.01310.04
4.3.50.0020.01810.04
4.3.40.0030.02210.04
4.3.30.0020.01610.04
4.3.20.0020.01210.04
4.3.10.0020.01810.04
4.3.00.0000.01310.04

preferences:
46.32 ms | 401 KiB | 5 Q