3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* http://php.net/manual/en/function.socket-create-listen.php Return Values socket_create_listen() returns a new socket resource on success or FALSE on error. The error code can be retrieved with socket_last_error(). This code may be passed to socket_strerror() to get a textual explanation of the error. */ $failure = '1111'; var_export(socket_create_listen($failure));

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.0090.01218.54
8.3.50.0080.00821.99
8.3.40.0110.00418.78
8.3.30.0110.00419.12
8.3.20.0040.00420.34
8.3.10.0040.00421.85
8.3.00.0040.00417.80
8.2.180.0120.00616.75
8.2.170.0100.00722.96
8.2.160.0070.00720.36
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00021.03
8.2.110.0100.00022.25
8.2.100.0040.00818.03
8.2.90.0000.00919.22
8.2.80.0030.00617.97
8.2.70.0040.00417.63
8.2.60.0000.00917.80
8.2.50.0040.00418.07
8.2.40.0000.00818.22
8.2.30.0040.00418.05
8.2.20.0040.00417.63
8.2.10.0050.00218.02
8.2.00.0040.00417.62
8.1.280.0100.00725.92
8.1.270.0030.00723.99
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0070.00422.10
8.1.230.0040.00818.92
8.1.220.0070.00017.74
8.1.210.0030.00518.77
8.1.200.0040.00717.48
8.1.190.0040.00417.13
8.1.180.0080.00018.10
8.1.170.0050.00518.27
8.1.160.0040.00421.96
8.1.150.0050.00318.69
8.1.140.0040.00417.46
8.1.130.0030.00517.89
8.1.120.0070.00017.45
8.1.110.0040.00417.28
8.1.100.0000.00817.28
8.1.90.0030.00517.32
8.1.80.0030.00517.46
8.1.70.0070.00017.37
8.1.60.0080.00017.41
8.1.50.0040.00417.42
8.1.40.0080.00017.53
8.1.30.0030.00517.56
8.1.20.0000.00817.68
8.1.10.0060.00317.56
8.1.00.0000.00917.45
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.30
8.0.270.0030.00317.19
8.0.260.0000.00617.13
8.0.250.0030.00316.96
8.0.240.0030.00316.85
8.0.230.0000.00716.82
8.0.220.0000.00716.86
8.0.210.0030.00316.86
8.0.200.0030.00316.82
8.0.190.0070.00017.00
8.0.180.0040.00416.95
8.0.170.0090.00016.84
8.0.160.0030.00316.84
8.0.150.0000.00716.83
8.0.140.0000.00716.75
8.0.130.0040.00413.38
8.0.120.0000.00816.82
8.0.110.0070.00016.74
8.0.100.0040.00416.84
8.0.90.0030.00416.88
8.0.80.0090.01216.92
8.0.70.0040.00416.73
8.0.60.0040.00416.80
8.0.50.0000.00716.75
8.0.30.0120.00716.91
8.0.20.0120.00917.40
8.0.10.0000.00717.08
8.0.00.0060.01416.81
7.4.330.0050.00015.08
7.4.320.0000.00716.45
7.4.300.0000.00716.50
7.4.290.0030.00316.43
7.4.280.0030.00516.54
7.4.270.0040.00416.53
7.4.260.0030.00616.58
7.4.250.0070.00016.53
7.4.240.0020.00516.55
7.4.230.0000.00716.39
7.4.220.0100.00716.66
7.4.210.0030.01216.63
7.4.200.0000.00716.41
7.4.160.0030.01216.41
7.4.150.0090.00917.40
7.4.140.0070.01517.86
7.4.130.0110.00716.65
7.4.120.0060.01116.49
7.4.110.0140.00716.68
7.4.100.0090.00916.63
7.4.90.0090.00916.36
7.4.80.0120.00819.39
7.4.70.0100.00616.51
7.4.60.0090.00916.54
7.4.50.0080.00016.52
7.4.40.0080.00816.56
7.4.30.0030.01316.76
7.4.00.0090.00414.98
7.3.330.0020.00213.02
7.3.320.0050.00013.27
7.3.310.0000.00716.33
7.3.300.0020.00516.29
7.3.290.0040.01516.21
7.3.280.0080.00916.29
7.3.270.0000.01817.40
7.3.260.0100.00716.29
7.3.250.0100.01016.27
7.3.240.0100.00716.39
7.3.230.0070.01016.39
7.3.210.0080.00816.38
7.3.200.0150.00619.39
7.3.190.0070.01116.25
7.3.180.0040.01416.37
7.3.170.0060.01016.27
7.3.160.0170.00016.61
7.3.120.0000.01314.98
7.3.10.0130.00316.43
7.3.00.0060.00916.48
7.2.330.0070.01016.46
7.2.320.0070.01016.61
7.2.310.0040.01316.60
7.2.300.0100.00616.49
7.2.290.0100.00616.53
7.2.130.0070.01016.56
7.2.120.0040.01116.75
7.2.110.0070.00716.60
7.2.100.0080.00316.63
7.2.90.0080.00616.70
7.2.80.0100.00316.73
7.2.70.0070.00716.37
7.2.60.0060.00816.75
7.2.50.0150.00016.25
7.2.40.0030.00916.71
7.2.30.0000.01116.76
7.2.20.0000.01516.69
7.2.10.0070.00316.84
7.2.00.0050.01017.99
7.1.250.0070.00715.53
7.1.200.0050.00315.73
7.1.100.0040.00818.27
7.1.70.0080.00316.82
7.1.60.0030.02019.70
7.1.50.0130.00916.85
7.1.00.0100.07022.33
7.0.200.0040.00416.69
7.0.140.0100.06322.07
7.0.60.0030.07019.93
7.0.50.0130.07317.88
7.0.40.0100.05720.04
7.0.30.0200.05320.43
7.0.20.0430.06020.16
7.0.10.0030.04320.02
7.0.00.0070.08020.16
5.6.280.0030.07321.12
5.6.210.0100.08320.44
5.6.200.0070.03718.19
5.6.190.0070.04320.58
5.6.180.0300.07320.57
5.6.170.0330.04720.41
5.6.160.0000.04320.44
5.6.150.0130.05018.12
5.6.140.0130.04718.12
5.6.130.0170.07718.22
5.6.120.0000.05721.01
5.6.110.0100.08020.94
5.6.100.0030.04021.05
5.6.90.0030.07321.12
5.6.80.0000.04320.36
5.5.350.0300.07320.30
5.5.340.0100.06718.01
5.5.330.0100.08320.15
5.5.320.0400.04320.17
5.5.310.0300.08320.41
5.5.300.0100.08017.97
5.5.290.0070.06317.96
5.5.280.0130.07720.80
5.5.270.0030.05020.92
5.5.260.0100.06720.86
5.5.250.0070.07320.77
5.5.240.0100.06020.22
5.4.450.0700.05719.32
5.4.440.0130.05719.24
5.4.430.0200.05719.23
5.4.420.0170.05319.32
5.4.410.0130.05718.68
5.4.400.0230.05718.73
5.4.390.0370.04318.52
5.4.380.0130.04718.50
5.4.370.0100.04018.50
5.4.360.0070.03718.59
5.4.350.0050.04112.01
5.4.340.0100.03412.01
5.4.320.0070.04012.49
5.4.310.0070.03612.49
5.4.300.0040.03812.50
5.4.290.0060.04012.49
5.4.280.0060.03712.39
5.4.270.0070.03512.39
5.4.260.0050.03812.39
5.4.250.0060.03812.39
5.4.240.0090.03412.39
5.4.230.0060.03912.38
5.4.220.0030.04012.38
5.4.210.0060.04012.38
5.4.200.0060.03912.38
5.4.190.0050.03812.38
5.4.180.0060.03612.38
5.4.170.0040.03912.39
5.4.160.0070.03512.38
5.4.150.0060.03612.38
5.4.140.0070.03712.06
5.4.130.0060.03712.05
5.4.120.0060.03612.01
5.4.110.0050.03712.00
5.4.100.0060.03712.00
5.4.90.0040.04412.00
5.4.80.0070.03712.00
5.4.70.0060.04012.00
5.4.60.0070.03412.00
5.4.50.0030.04112.00
5.4.40.0060.03711.99
5.4.30.0050.03811.98
5.4.20.0050.03711.98
5.4.10.0050.03511.99
5.4.00.0030.03811.48
5.3.290.0070.04112.80
5.3.280.0080.03712.71
5.3.270.0080.03812.73
5.3.260.0040.04112.72
5.3.250.0060.03812.72
5.3.240.0110.03612.71
5.3.230.0130.03012.71
5.3.220.0070.03712.68
5.3.210.0090.03612.68
5.3.200.0050.03712.68
5.3.190.0050.03912.68
5.3.180.0120.03212.68
5.3.170.0060.03812.67
5.3.160.0050.03812.67
5.3.150.0100.03612.67
5.3.140.0110.03312.66
5.3.130.0100.03612.66
5.3.120.0040.04412.66
5.3.110.0090.03612.66
5.3.100.0060.04012.12
5.3.90.0070.03612.09
5.3.80.0050.03812.07
5.3.70.0050.03812.07
5.3.60.0060.03812.06
5.3.50.0080.03512.00
5.3.40.0070.03612.00
5.3.30.0120.03511.96
5.3.20.0040.03711.75
5.3.10.0080.03211.71
5.3.00.0040.03811.70
5.2.170.0050.0309.20
5.2.160.0050.0299.20
5.2.150.0060.0299.20
5.2.140.0050.0319.20
5.2.130.0060.0289.16
5.2.120.0050.0379.16
5.2.110.0050.0299.16
5.2.100.0060.0289.16
5.2.90.0040.0319.16
5.2.80.0040.0329.16
5.2.70.0050.0309.15
5.2.60.0050.0309.11
5.2.50.0050.0309.08
5.2.40.0050.0339.05
5.2.30.0090.0339.03
5.2.20.0070.0289.01
5.2.10.0030.0308.93
5.2.00.0040.0318.80
5.1.60.0040.0258.08
5.1.50.0030.0268.08
5.1.40.0030.0268.06
5.1.30.0010.0298.41
5.1.20.0070.0248.43
5.1.10.0060.0258.15
5.1.00.0050.0268.16
5.0.50.0030.0226.63
5.0.40.0040.0196.49
5.0.30.0010.0346.31
5.0.20.0050.0206.27
5.0.10.0040.0196.25
5.0.00.0020.0336.24
4.4.90.0020.0164.78
4.4.80.0050.0134.75
4.4.70.0020.0174.75
4.4.60.0020.0164.75
4.4.50.0010.0174.77
4.4.40.0040.0324.71
4.4.30.0050.0174.76
4.4.20.0040.0184.84
4.4.10.0020.0174.85
4.4.00.0020.0264.76
4.3.110.0030.0154.66
4.3.100.0010.0174.66
4.3.90.0030.0144.63
4.3.80.0020.0284.58
4.3.70.0040.0134.63
4.3.60.0030.0144.63
4.3.50.0020.0164.63
4.3.40.0050.0224.54
4.3.30.0030.0153.30
4.3.20.0020.0163.29
4.3.10.0000.0183.24
4.3.00.0100.0237.27

preferences:
57.23 ms | 401 KiB | 5 Q