3v4l.org

run code in 300+ PHP versions simultaneously
<?php $all = array( '127.0.0.1', '::1', '1::1::1', '0.0.0.0.0', '', 'localhost' ); foreach ($all as $one) { var_dump(inet_pton($one)); }

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.5.00.0120.00919.87
8.4.150.0030.00014.05
8.4.140.0120.00917.61
8.4.130.0110.01017.67
8.4.120.0060.00319.36
8.4.110.0080.01218.05
8.4.100.0130.00817.63
8.4.90.0120.00620.57
8.4.80.0080.01118.72
8.4.70.0100.01020.66
8.4.60.0120.00920.76
8.4.50.0150.00520.22
8.4.40.0070.01417.42
8.4.30.0040.00420.07
8.4.20.0030.01718.04
8.4.10.0030.01719.68
8.3.280.0120.00818.41
8.3.270.0100.00916.77
8.3.260.0060.00416.79
8.3.250.0140.00518.93
8.3.240.0130.00616.77
8.3.230.0100.01116.64
8.3.220.0050.01319.16
8.3.210.0050.00216.63
8.3.200.0020.00616.57
8.3.190.0050.00417.46
8.3.180.0120.00719.13
8.3.170.0060.01220.80
8.3.160.0060.01220.96
8.3.150.0000.00816.53
8.3.140.0040.01116.86
8.3.130.0050.00318.34
8.3.120.0140.00718.98
8.3.110.0000.00820.94
8.3.100.0120.00324.06
8.3.90.0140.00026.77
8.3.80.0030.00616.50
8.3.70.0150.00016.75
8.3.60.0140.00716.75
8.3.50.0190.00317.97
8.3.40.0140.00018.68
8.3.30.0150.00318.43
8.3.20.0050.00224.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0110.00816.79
8.2.280.0130.00618.61
8.2.270.0150.00318.58
8.2.260.0070.00716.99
8.2.250.0110.00316.70
8.2.240.0050.00317.25
8.2.230.0060.00322.58
8.2.220.0040.00437.54
8.2.210.0140.00426.77
8.2.200.0060.00316.75
8.2.190.0150.00016.58
8.2.180.0070.00725.92
8.2.170.0120.00318.82
8.2.160.0040.01122.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00026.16
8.2.110.0040.00722.32
8.2.100.0100.00319.63
8.2.90.0000.00817.63
8.2.80.0060.00318.86
8.2.70.0000.00817.50
8.2.60.0080.00017.50
8.2.50.0060.00317.63
8.2.40.0040.00417.62
8.2.30.0050.00317.81
8.2.20.0000.00720.68
8.2.10.0040.00417.76
8.2.00.0000.00719.42
8.1.330.0100.00816.05
8.1.320.0110.00817.79
8.1.310.0120.00620.06
8.1.300.0060.00318.48
8.1.290.0030.00618.88
8.1.280.0110.00725.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00023.92
8.1.230.0040.00719.20
8.1.220.0040.00417.91
8.1.210.0080.00018.77
8.1.200.0030.00517.35
8.1.190.0060.00317.22
8.1.180.0090.00019.01
8.1.170.0030.00517.76
8.1.160.0040.00419.03
8.1.150.0050.00318.57
8.1.140.0070.00017.42
8.1.130.0030.00318.90
8.1.120.0040.00417.49
8.1.110.0000.00817.41
8.1.100.0050.00217.56
8.1.90.0040.00417.48
8.1.80.0040.00717.43
8.1.70.0000.00717.53
8.1.60.0040.00417.60
8.1.50.0040.00417.46
8.1.40.0000.00717.59
8.1.30.0030.00617.72
8.1.20.0000.00817.74
8.1.10.0050.00317.50
8.1.00.0000.00817.44
8.0.300.0020.00518.77
8.0.290.0030.00516.75
8.0.280.0030.00318.09
8.0.270.0000.00716.86
8.0.260.0030.00318.50
8.0.250.0000.00616.88
8.0.240.0000.00816.90
8.0.230.0030.00316.98
8.0.220.0000.00716.90
8.0.210.0030.00416.81
8.0.200.0000.00617.06
8.0.190.0030.00517.04
8.0.180.0000.00716.86
8.0.170.0060.00316.91
8.0.160.0040.00416.90
8.0.150.0000.00717.00
8.0.140.0000.00716.94
8.0.130.0140.00416.93
8.0.120.0160.00216.82
8.0.110.0140.00416.93
8.0.100.0170.00216.87
8.0.90.0130.00516.86
8.0.80.0170.00316.90
8.0.70.0160.00216.93
8.0.60.0090.00916.81
8.0.50.0150.00316.89
8.0.30.0120.00616.88
8.0.20.0140.00416.94
8.0.10.0160.00216.99
8.0.00.0060.00617.02
7.4.330.0000.00515.55
7.4.320.0030.00316.57
7.4.300.0040.00416.64
7.4.290.0040.00416.52
7.4.280.0050.00516.67
7.4.270.0080.00016.60
7.4.260.0180.00216.60
7.4.250.0230.00016.46
7.4.240.0140.00816.56
7.4.230.0150.00516.57
7.4.220.0160.00416.58
7.4.210.0180.00116.58
7.4.200.0110.00716.57
7.4.190.0170.00016.60
7.4.180.0150.00216.56
7.4.160.0140.00316.60
7.4.150.0110.00616.60
7.4.140.0100.00816.54
7.4.130.0130.00516.41
7.4.120.0130.00616.47
7.4.110.0070.00916.47
7.4.100.0080.01116.61
7.4.90.0140.00516.48
7.4.80.0120.00616.42
7.4.70.0090.00416.42
7.4.60.0120.00516.41
7.4.50.0140.00516.36
7.4.40.0110.00616.32
7.4.30.0040.00716.45
7.4.20.0110.00216.43
7.4.10.0070.00516.36
7.4.00.0080.00516.50
7.3.330.0160.00216.21
7.3.320.0140.00416.13
7.3.310.0170.00316.25
7.3.300.0140.00516.07
7.3.290.0110.00416.21
7.3.280.0090.00716.17
7.3.270.0070.00416.32
7.3.260.0080.00416.09
7.3.250.0150.00216.24
7.3.240.0150.00416.34
7.3.230.0090.00316.26
7.3.220.0100.00116.27
7.3.210.0070.00416.13
7.3.200.0110.00016.05
7.3.190.0080.00316.13
7.3.180.0110.00516.31
7.3.170.0170.00216.28
7.3.160.0110.00316.17
7.3.150.0130.00416.24
7.3.140.0140.00616.20
7.3.130.0170.00316.12
7.3.120.0040.00616.21
7.3.110.0080.00716.20
7.3.100.0150.00316.20
7.3.90.0160.00516.54
7.3.80.0110.00516.06
7.3.70.0090.00616.23
7.3.60.0110.00216.37
7.3.50.0100.00416.45
7.3.40.0080.00516.12
7.3.30.0080.00316.32
7.3.20.0110.00218.05
7.3.10.0070.00518.05
7.3.00.0090.00317.82
7.2.340.0120.00016.24
7.2.330.0140.00516.30
7.2.320.0110.00716.39
7.2.310.0160.00316.45
7.2.300.0110.00716.45
7.2.290.0180.00016.36
7.2.280.0150.00416.45
7.2.270.0140.00416.44
7.2.260.0140.00516.37
7.2.250.0160.00316.45
7.2.240.0180.00016.45
7.2.230.0170.00316.30
7.2.220.0140.00516.35
7.2.210.0160.00316.54
7.2.200.0120.00916.44
7.2.190.0100.01016.36
7.2.180.0110.00816.44
7.2.170.0120.00616.68
7.2.160.0130.00716.66
7.2.150.0140.00718.34
7.2.140.0150.00318.51
7.2.130.0160.00318.44
7.2.120.0180.00018.31
7.2.110.0160.00518.38
7.2.100.0180.00018.37
7.2.90.0150.00418.32
7.2.80.0130.00518.47
7.2.70.0060.01318.26
7.2.60.0160.00318.23
7.2.50.0170.00318.25
7.2.40.0150.00418.57
7.2.30.0170.00318.44
7.2.20.0160.00318.54
7.2.10.0160.00318.58
7.2.00.0110.00018.57
7.1.330.0170.00017.43
7.1.320.0100.00617.32
7.1.310.0130.00417.46
7.1.300.0150.00517.46
7.1.290.0120.00617.46
7.1.280.0150.00317.23
7.1.270.0120.00517.26
7.1.260.0100.00717.36
7.1.250.0180.00017.34
7.1.240.0140.00317.39
7.1.230.0050.01117.24
7.1.220.0180.00017.18
7.1.210.0130.00417.44
7.1.200.0130.00517.31
7.1.190.0130.00717.20
7.1.180.0130.00417.21
7.1.170.0170.00317.21
7.1.160.0110.00717.16
7.1.150.0090.00917.30
7.1.140.0150.00417.10
7.1.130.0180.00017.10
7.1.120.0090.00917.32
7.1.110.0170.00017.39
7.1.100.0130.00517.37
7.1.90.0180.00017.22
7.1.80.0150.00517.23
7.1.70.0100.00717.02
7.1.60.0150.00317.36
7.1.50.0140.00317.32
7.1.40.0170.00017.23
7.1.30.0090.00917.26
7.1.20.0130.00417.44
7.1.10.0100.00717.14
7.1.00.0140.00317.14
7.0.330.0180.00016.86
7.0.320.0160.00016.99
7.0.310.0150.00316.78
7.0.300.0170.00016.92
7.0.290.0180.00016.91
7.0.280.0130.00316.91
7.0.270.0130.00416.93
7.0.260.0100.00716.93
7.0.250.0130.00417.07
7.0.240.0080.00817.29
7.0.230.0120.00817.23
7.0.220.0090.00917.31
7.0.210.0190.00017.17
7.0.200.0120.00617.22
7.0.190.0140.00317.24
7.0.180.0110.00617.13
7.0.170.0110.00617.38
7.0.160.0120.00617.25
7.0.150.0140.00316.91
7.0.140.0180.00016.97
7.0.130.0170.00317.09
7.0.120.0130.00317.21
7.0.110.0140.00316.75
7.0.100.0170.00016.99
7.0.90.0140.00316.80
7.0.80.0180.00016.82
7.0.70.0090.00916.86
7.0.60.0170.00016.95
7.0.50.0170.00016.89
7.0.40.0110.00616.93
7.0.30.0150.00516.96
7.0.20.0120.00516.86
7.0.10.0110.00517.15
7.0.00.0080.00816.88
5.6.400.0000.01715.61
5.6.390.0180.00015.82
5.6.380.0110.00515.82
5.6.370.0100.00715.78
5.6.360.0140.00315.89
5.6.350.0120.00415.80
5.6.340.0180.00415.89
5.6.330.0090.00915.60
5.6.320.0120.00415.86
5.6.310.0140.00315.78
5.6.300.0080.00815.54
5.6.290.0080.00815.63
5.6.280.0140.00315.73
5.6.270.0140.00215.73
5.6.260.0170.00015.63
5.6.250.0160.00415.82
5.6.240.0080.01215.68
5.6.230.0140.00315.93
5.6.220.0110.00615.92
5.6.210.0150.00215.73
5.6.200.0110.00515.82
5.6.190.0030.00615.71
5.6.180.0100.00715.96
5.6.170.0120.00516.04
5.6.160.0060.00316.02
5.6.150.0080.00815.87
5.6.140.0180.00015.99
5.6.130.0060.01015.79
5.6.120.0160.00016.02
5.6.110.0100.00715.89
5.6.100.0050.01115.91
5.6.90.0130.00315.85
5.6.80.0110.00515.57
5.6.70.0120.00515.91
5.6.60.0130.00315.75
5.6.50.0180.00415.77
5.6.40.0190.00015.84
5.6.30.0120.00415.84
5.6.20.0120.00415.77
5.6.10.0110.00415.74
5.6.00.0110.00515.76
5.5.380.0110.00615.95
5.5.370.0110.00615.75
5.5.360.0140.00315.76
5.5.350.0180.00015.77
5.5.340.0160.00315.54
5.5.330.0140.00315.68
5.5.320.0140.00315.88
5.5.310.0140.00315.56
5.5.300.0120.00515.70
5.5.290.0140.00315.81
5.5.280.0070.01015.93
5.5.270.0140.00315.80
5.5.260.0140.00315.86
5.5.250.0100.00815.97
5.5.240.0170.00315.98
5.5.230.0140.00315.95
5.5.220.0110.00515.77
5.5.210.0100.00615.82
5.5.200.0100.00615.86
5.5.190.0090.00715.57
5.5.180.0100.00515.62
5.5.170.0160.00015.73
5.5.160.0110.00515.45
5.5.150.0140.00315.38
5.5.140.0190.00015.50
5.5.130.0160.00015.49
5.5.120.0140.00315.48
5.5.110.0120.00615.66
5.5.100.0160.00315.65
5.5.90.0080.00815.87
5.5.80.0100.00615.87
5.5.70.0120.00415.94
5.5.60.0150.00015.55
5.5.50.0080.00815.83
5.5.40.0160.00315.82
5.5.30.0160.00015.86
5.5.20.0100.00515.61
5.5.10.0150.00015.64
5.5.00.0120.00415.53
5.4.450.0090.00412.45
5.4.440.0100.00312.77
5.4.430.0090.00512.55
5.4.420.0130.00012.62
5.4.410.0090.00412.52
5.4.400.0090.00512.56
5.4.390.0150.00012.52
5.4.380.0130.00312.51
5.4.370.0070.00712.39
5.4.360.0070.00712.40
5.4.350.0130.00012.63
5.4.340.0140.00012.48
5.4.330.0110.00212.63
5.4.320.0130.00012.69
5.4.310.0110.00412.62
5.4.300.0070.00712.54
5.4.290.0120.00312.76
5.4.280.0090.00512.76
5.4.270.0110.00412.44
5.4.260.0070.00712.53
5.4.250.0070.00712.48
5.4.240.0150.00012.55
5.4.230.0140.00012.37
5.4.220.0110.00412.37
5.4.210.0130.00412.34
5.4.200.0110.00412.32
5.4.190.0130.00012.51
5.4.180.0140.00012.34
5.4.170.0100.00312.39
5.4.160.0100.00312.42
5.4.150.0130.00012.36
5.4.140.0080.00412.39
5.4.130.0120.00012.54
5.4.120.0110.00212.72
5.4.110.0110.00312.52
5.4.100.0110.00312.81
5.4.90.0080.00412.74
5.4.80.0100.00712.55
5.4.70.0090.00412.80
5.4.60.0090.00412.87
5.4.50.0090.00412.54
5.4.40.0070.00712.74
5.4.30.0040.00912.63
5.4.20.0100.00312.58
5.4.10.0110.00312.83
5.4.00.0120.00012.43
5.3.290.0070.00712.91
5.3.280.0070.00713.05
5.3.270.0110.00313.11
5.3.260.0090.00513.19
5.3.250.0120.00413.17
5.3.240.0070.00712.84
5.3.230.0090.00512.80
5.3.220.0070.00712.70
5.3.210.0130.00012.72
5.3.200.0090.00413.07
5.3.190.0100.00312.80
5.3.180.0140.00013.24
5.3.170.0100.00313.19
5.3.160.0140.00013.14
5.3.150.0090.00513.19
5.3.140.0100.00313.09
5.3.130.0050.01113.11
5.3.120.0110.00412.80
5.3.110.0130.00513.04
5.3.100.0070.00713.11
5.3.90.0130.00012.95
5.3.80.0100.00212.96
5.3.70.0090.00312.96
5.3.60.0100.00313.11
5.3.50.0050.00913.04
5.3.40.0100.00313.02
5.3.30.0130.00013.03
5.3.20.0130.00012.81
5.3.10.0130.00012.62
5.3.00.0040.00912.64
5.2.170.0110.00211.81
5.2.160.0050.00512.11
5.2.150.0050.00511.80
5.2.140.0110.00011.80
5.2.130.0050.00512.11
5.2.120.0100.00011.89
5.2.110.0050.00512.06
5.2.100.0110.00011.84
5.2.90.0050.00511.96
5.2.80.0050.00511.97
5.2.70.0110.00012.05
5.2.60.0050.00511.88
5.2.50.0080.00311.82
5.2.40.0100.00011.77
5.2.30.0050.00511.70
5.2.20.0100.00011.55
5.2.10.0080.00411.55
5.2.00.0070.00311.71
5.1.60.0090.00010.78
5.1.50.0050.00510.84
5.1.40.0050.00511.09
5.1.30.0090.00011.18
5.1.20.0100.00011.11
5.1.10.0090.00010.80
5.1.00.0060.00310.75
5.0.50.0040.00410.65
5.0.40.0040.00410.65
5.0.30.0040.00310.65
5.0.20.0080.00010.65
5.0.10.0070.00010.65
5.0.00.0050.00210.65
4.4.90.0040.00010.65
4.4.80.0000.00510.65
4.4.70.0000.00410.65
4.4.60.0030.00210.65
4.4.50.0030.00210.65
4.4.40.0050.00010.65
4.4.30.0030.00210.65
4.4.20.0030.00310.65
4.4.10.0060.00010.65
4.4.00.0050.00010.65
4.3.110.0040.00010.65
4.3.100.0040.00010.65
4.3.90.0030.00210.65
4.3.80.0000.00510.65
4.3.70.0030.00210.65
4.3.60.0050.00010.65
4.3.50.0000.00510.65
4.3.40.0040.00010.65
4.3.30.0000.00310.65
4.3.20.0030.00010.65
4.3.10.0000.00310.65
4.3.00.0030.00010.65

preferences:
36.28 ms | 403 KiB | 5 Q