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)); echo "\n"; var_export(socket_last_error());

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.0180.00318.43
8.3.50.0090.00621.91
8.3.40.0140.00018.71
8.3.30.0090.00618.96
8.3.20.0040.00420.07
8.3.10.0080.00021.65
8.3.00.0040.00418.00
8.2.180.0150.00916.75
8.2.170.0000.01822.96
8.2.160.0140.00020.46
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00821.02
8.2.110.0030.00721.18
8.2.100.0080.00417.72
8.2.90.0060.00317.91
8.2.80.0030.00518.16
8.2.70.0080.00017.50
8.2.60.0040.00417.63
8.2.50.0040.00417.63
8.2.40.0030.00519.48
8.2.30.0070.00018.06
8.2.20.0040.00417.63
8.2.10.0040.00418.04
8.2.00.0030.00517.79
8.1.280.0100.00325.92
8.1.270.0090.00923.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00521.89
8.1.230.0000.01120.89
8.1.220.0040.00417.74
8.1.210.0000.00818.84
8.1.200.0040.00417.35
8.1.190.0040.00417.22
8.1.180.0030.00618.10
8.1.170.0070.00017.66
8.1.160.0070.00021.94
8.1.150.0070.00018.81
8.1.140.0030.00617.42
8.1.130.0000.00717.82
8.1.120.0070.00017.41
8.1.110.0040.00417.39
8.1.100.0000.00717.45
8.1.90.0030.00317.36
8.1.80.0070.00017.31
8.1.70.0000.00717.25
8.1.60.0030.00517.54
8.1.50.0030.00617.58
8.1.40.0000.00817.52
8.1.30.0050.00317.66
8.1.20.0000.00817.53
8.1.10.0070.00017.58
8.1.00.0050.00317.53
8.0.300.0000.00719.98
8.0.290.0070.00016.75
8.0.280.0000.00818.31
8.0.270.0000.00716.82
8.0.260.0030.00317.12
8.0.250.0060.00016.85
8.0.240.0000.00616.84
8.0.230.0070.00016.84
8.0.220.0000.00616.79
8.0.210.0030.00316.90
8.0.200.0030.00316.87
8.0.190.0070.00016.93
8.0.180.0000.00716.91
8.0.170.0070.00016.93
8.0.160.0030.00316.73
8.0.150.0030.00316.83
8.0.140.0030.00416.87
8.0.130.0040.00413.27
8.0.120.0040.00416.88
8.0.110.0050.00216.84
8.0.100.0040.00416.92
8.0.90.0030.00516.85
8.0.80.0040.01116.80
8.0.70.0000.00716.91
8.0.60.0060.00316.91
8.0.50.0000.00816.68
8.0.30.0140.01116.96
8.0.20.0110.00917.40
8.0.10.0040.00416.95
8.0.00.0130.00516.76
7.4.330.0000.00515.09
7.4.320.0030.00316.52
7.4.300.0060.00016.50
7.4.290.0050.00216.48
7.4.280.0050.00316.58
7.4.270.0030.00316.51
7.4.260.0030.00316.49
7.4.250.0000.00816.36
7.4.240.0020.00516.48
7.4.230.0000.00716.67
7.4.220.0070.01116.70
7.4.210.0070.00716.66
7.4.200.0030.00316.38
7.4.160.0030.01216.23
7.4.150.0150.00417.40
7.4.140.0110.00817.86
7.4.130.0130.00816.56
7.4.120.0080.00916.61
7.4.110.0130.01016.50
7.4.100.0100.00716.56
7.4.90.0140.00316.35
7.4.80.0100.01319.39
7.4.70.0090.00616.44
7.4.60.0100.01016.53
7.4.50.0060.00316.45
7.4.40.0070.01416.45
7.4.30.0130.00316.64
7.4.00.0040.01114.77
7.3.330.0000.00513.23
7.3.320.0000.00513.18
7.3.310.0070.00016.34
7.3.300.0000.00616.10
7.3.290.0030.01216.21
7.3.280.0150.00616.26
7.3.270.0060.01217.40
7.3.260.0130.01016.29
7.3.250.0150.00616.40
7.3.240.0060.01316.47
7.3.230.0030.01416.49
7.3.210.0090.00916.36
7.3.200.0110.01119.39
7.3.190.0110.00916.43
7.3.180.0060.01016.22
7.3.170.0120.00316.31
7.3.160.0080.00816.40
7.3.120.0070.00714.63
7.2.330.0110.00616.48
7.2.320.0030.01316.58
7.2.310.0130.00316.23
7.2.300.0160.00716.66
7.2.290.0070.01016.29
7.2.110.0130.00716.47
7.2.60.0060.00916.71
7.2.00.0030.01019.36
7.1.200.0060.00615.52
7.1.70.0000.00817.19
7.1.60.0040.00717.16
7.1.50.0290.00034.21
7.1.00.0000.08022.48
7.0.200.0000.01616.81
7.0.140.0000.07722.21
7.0.60.0130.05720.06
7.0.50.0030.08317.80
7.0.40.0070.07320.04
7.0.30.0200.05020.09
7.0.20.0330.06020.04
7.0.10.0030.04320.09
7.0.00.0030.07020.18
5.6.280.0000.07720.77
5.6.210.0100.05320.54
5.6.200.0070.03718.19
5.6.190.0100.05320.39
5.6.180.0300.07020.42
5.6.170.0200.06320.54
5.6.160.0030.04320.38
5.6.150.0070.03718.18
5.6.140.0100.06718.07
5.6.130.0030.05718.12
5.6.120.0100.08321.04
5.6.110.0070.08321.07
5.6.100.0030.04021.10
5.6.90.0200.07021.00
5.6.80.0070.03720.36
5.5.350.0330.07020.43
5.5.340.0100.03318.00
5.5.330.0070.07020.13
5.5.320.0270.06720.18
5.5.310.0400.07320.21
5.5.300.0030.08317.87
5.5.290.0070.05017.91
5.5.280.0030.04320.83
5.5.270.0070.06320.88
5.5.260.0030.07320.75
5.5.250.0070.06320.68
5.5.240.0070.07320.25
5.4.450.0670.05019.13
5.4.440.0100.06019.55
5.4.430.0100.05719.09
5.4.420.0330.05319.13
5.4.410.0070.05318.79
5.4.400.0370.05318.79
5.4.390.0430.05318.69
5.4.380.0070.05318.65
5.4.370.0100.03318.68
5.4.360.0100.04018.57
5.4.350.0060.03412.01
5.4.340.0100.03512.00
5.4.320.0060.04212.50
5.4.310.0050.03912.49
5.4.300.0100.03312.50
5.4.290.0050.04012.49
5.4.280.0090.03212.39
5.4.270.0050.03712.39
5.4.260.0070.03712.39
5.4.250.0090.03512.39
5.4.240.0060.03612.39
5.4.230.0060.03812.38
5.4.220.0070.03512.38
5.4.210.0040.03712.38
5.4.200.0060.03812.38
5.4.190.0040.03812.38
5.4.180.0060.03612.38
5.4.170.0050.03712.39
5.4.160.0060.03912.38
5.4.150.0050.04312.38
5.4.140.0100.05012.06
5.4.130.0070.03712.05
5.4.120.0100.03212.01
5.4.110.0030.03812.00
5.4.100.0050.03712.00
5.4.90.0030.04512.00
5.4.80.0130.04312.00
5.4.70.0070.04612.00
5.4.60.0040.03912.00
5.4.50.0050.03512.00
5.4.40.0050.03911.99
5.4.30.0070.03811.98
5.4.20.0080.03511.98
5.4.10.0070.03611.99
5.4.00.0080.03611.48
5.3.290.0050.03912.80
5.3.280.0090.03612.71
5.3.270.0060.03912.72
5.3.260.0060.03912.72
5.3.250.0070.03912.72
5.3.240.0050.04412.72
5.3.230.0060.04012.71
5.3.220.0030.04012.68
5.3.210.0070.03812.68
5.3.200.0080.03612.68
5.3.190.0070.03712.68
5.3.180.0070.03712.67
5.3.170.0040.03912.67
5.3.160.0050.03912.67
5.3.150.0090.03512.67
5.3.140.0050.03812.66
5.3.130.0070.03912.66
5.3.120.0060.03912.66
5.3.110.0030.04212.66
5.3.100.0060.03712.12
5.3.90.0080.03412.09
5.3.80.0040.03812.07
5.3.70.0100.03212.07
5.3.60.0040.03812.07
5.3.50.0080.03412.00
5.3.40.0040.03812.00
5.3.30.0050.03611.96
5.3.20.0070.03511.75
5.3.10.0040.03611.71
5.3.00.0100.03211.70
5.2.170.0040.0329.20
5.2.160.0050.0309.20
5.2.150.0050.0319.20
5.2.140.0030.0339.20
5.2.130.0050.0299.16
5.2.120.0040.0299.16
5.2.110.0090.0259.16
5.2.100.0080.0259.16
5.2.90.0010.0339.16
5.2.80.0040.0319.15
5.2.70.0040.0329.16
5.2.60.0090.0339.11
5.2.50.0060.0309.07
5.2.40.0020.0329.05
5.2.30.0070.0289.03
5.2.20.0030.0319.01
5.2.10.0070.0268.94
5.2.00.0020.0328.79
5.1.60.0050.0248.08
5.1.50.0100.0208.07
5.1.40.0040.0258.06
5.1.30.0020.0288.41
5.1.20.0050.0268.43
5.1.10.0020.0298.15
5.1.00.0030.0278.15
5.0.50.0030.0206.63
5.0.40.0040.0186.49
5.0.30.0030.0326.30
5.0.20.0010.0226.28
5.0.10.0040.0196.25
5.0.00.0020.0316.24
4.4.90.0020.0164.78
4.4.80.0030.0154.75
4.4.70.0020.0164.76
4.4.60.0030.0154.76
4.4.50.0020.0164.77
4.4.40.0060.0224.71
4.4.30.0010.0174.76
4.4.20.0030.0154.85
4.4.10.0050.0154.85
4.4.00.0030.0254.76
4.3.110.0070.0204.67
4.3.100.0040.0204.67
4.3.90.0040.0184.64
4.3.80.0030.0284.59
4.3.70.0020.0154.63
4.3.60.0010.0164.63
4.3.50.0020.0174.63
4.3.40.0010.0254.54
4.3.30.0020.0163.30
4.3.20.0020.0163.28
4.3.10.0020.0163.24
4.3.00.0100.0237.27

preferences:
48.17 ms | 401 KiB | 5 Q