3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server = stream_socket_server('tcp://127.0.0.1:8080'); $context = stream_context_create(array('socket'=>array('bindto'=>'1.2.3.4:5678'))); $client = stream_socket_client('tcp://127.0.0.1:8080', $errno, $errstr, 10, STREAM_CLIENT_CONNECT, $context); var_dump($client); var_dump(stream_socket_get_name($client, false));

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.1.20.0040.00417.71
8.1.10.0030.00617.56
8.1.00.0040.00417.64
8.0.150.0040.00416.91
8.0.140.0030.00316.92
8.0.130.0060.00013.45
8.0.120.0040.00417.01
8.0.110.0000.00717.03
8.0.100.0040.00416.99
8.0.90.0040.00417.08
8.0.80.0030.01716.90
8.0.70.0040.00417.12
8.0.60.0050.00216.89
8.0.50.0050.00216.89
8.0.30.0110.00716.99
8.0.20.0240.02517.40
8.0.10.0000.01917.40
8.0.00.0110.01016.99
7.4.270.0000.00716.51
7.4.260.0000.00716.48
7.4.250.0000.00816.57
7.4.240.0000.00816.47
7.4.230.0000.00716.73
7.4.220.0060.00316.68
7.4.210.0040.01116.71
7.4.200.0000.00716.63
7.4.160.0120.00616.57
7.4.150.0240.01817.40
7.4.140.0090.01217.63
7.4.130.0120.00916.97
7.4.120.0080.00916.92
7.4.110.0120.00616.91
7.4.100.0160.00517.01
7.4.90.0160.00016.97
7.4.80.0130.00718.40
7.4.70.0080.00816.88
7.4.60.0150.00216.98
7.4.50.0070.00916.94
7.4.40.0070.01017.03
7.4.30.0190.00317.40
7.4.20.0130.00817.40
7.4.10.0090.01217.40
7.4.00.0090.00816.20
7.3.330.0000.00613.11
7.3.320.0000.00513.23
7.3.310.0070.00016.17
7.3.300.0030.00316.26
7.3.290.0070.00016.27
7.3.280.0090.00616.26
7.3.270.0200.01117.40
7.3.260.0130.00716.61
7.3.250.0280.01517.40
7.3.240.0130.00616.58
7.3.230.0080.01116.99
7.3.220.0150.00317.40
7.3.210.0070.01416.80
7.3.200.0070.01016.80
7.3.190.0090.00916.86
7.3.180.0100.00716.86
7.3.170.0070.01016.91
7.3.160.0100.00716.87
7.3.150.0210.00517.40
7.3.140.0100.01017.40
7.3.130.0090.01217.40
7.3.120.0060.01817.40
7.3.110.0160.01017.40
7.3.100.0110.00817.40
7.3.90.0180.00017.40
7.3.80.0060.01117.40
7.3.70.0090.00917.40
7.3.60.0040.01417.40
7.3.50.0170.00417.40
7.3.40.0090.00917.40
7.3.30.0280.00617.40
7.3.20.0470.00415.60
7.3.10.0370.00816.00
7.3.00.0380.00616.04
7.2.340.0380.01517.40
7.2.330.0200.00617.02
7.2.320.0200.00817.08
7.2.310.0180.01016.89
7.2.300.0180.01017.04
7.2.290.0230.00817.03
7.2.280.0210.01317.40
7.2.270.0220.01117.40
7.2.260.0280.00917.40
7.2.250.0340.00717.40
7.2.240.0280.02417.40
7.2.230.0250.00617.40
7.2.220.0210.01417.40
7.2.210.0290.00617.40
7.2.200.0200.01217.40
7.2.190.0220.00617.40
7.2.180.0240.00917.40
7.2.170.0270.00617.40
7.2.160.0090.02117.40
7.2.150.0470.00816.16
7.2.140.0410.01116.17
7.2.130.0440.01216.19
7.2.120.0430.01016.29
7.2.110.0390.01616.15
7.2.100.0460.01116.17
7.2.90.0490.01016.16
7.2.80.0470.01016.17
7.2.70.0540.00716.03
7.2.60.0500.00616.14
7.2.50.0370.00716.15
7.2.40.0430.01116.20
7.2.30.0370.00716.21
7.2.20.0380.01616.21
7.2.10.0370.01016.23
7.2.00.0310.01415.96
7.1.330.0220.00717.40
7.1.320.0300.00017.40
7.1.310.0150.01517.40
7.1.300.0280.01117.40
7.1.290.0270.00317.40
7.1.280.0200.01017.40
7.1.270.0200.01017.40
7.1.260.0380.00717.40
7.1.250.0600.00515.68
7.1.240.0560.00815.71
7.1.230.0580.00715.70
7.1.220.0520.00515.56
7.1.210.0540.00615.55
7.1.200.0540.00615.78
7.1.190.0470.01715.55
7.1.180.0420.01015.61
7.1.170.0490.01215.58
7.1.160.0590.01215.58
7.1.150.0360.00915.53
7.1.140.0350.00915.60
7.1.130.0420.00815.65
7.1.120.0410.01015.55
7.1.110.0460.00615.61
7.1.100.0420.00615.70
7.1.90.1190.01115.67
7.1.80.0390.00915.58
7.1.70.0460.00915.58
7.1.60.0410.00315.76
7.1.50.0460.00215.69
7.1.40.0350.01115.58
7.1.30.0420.01015.58
7.1.20.0400.01015.70
7.1.10.0360.00715.69
7.1.00.0330.00715.67
7.0.330.0580.00815.46
7.0.320.0380.01215.43
7.0.310.0490.00415.58
7.0.300.0460.01015.45
7.0.290.0540.00715.36
7.0.280.0400.00915.42
7.0.270.0400.00715.49
7.0.260.0420.00715.54
7.0.250.0530.00315.46
7.0.240.0450.00715.57
7.0.230.0480.01015.52
7.0.220.0380.00915.34
7.0.210.0360.01015.51
7.0.200.0540.00915.47
7.0.190.0350.01015.54
7.0.180.0430.00615.50
7.0.170.0380.01515.52
7.0.160.0350.01015.52
7.0.150.0290.01215.66
7.0.140.0360.00515.45
7.0.130.0420.00715.51
7.0.120.0290.01015.47
7.0.110.0350.00515.43
7.0.100.0390.00515.38
7.0.90.0380.00715.60
7.0.80.0390.00615.51
7.0.70.0400.00715.39
7.0.60.0260.00815.49
7.0.50.0340.00715.49
7.0.40.0380.01115.32
7.0.30.0430.00815.36
7.0.20.0270.01015.57
7.0.10.0360.00315.46
7.0.00.0280.00915.54
5.6.400.0190.01117.40
5.6.390.0290.00417.40
5.6.380.0210.00715.87
5.6.370.0150.01315.80
5.6.360.0160.01115.76
5.6.350.0180.01115.94
5.6.340.0190.01315.96
5.6.330.0170.01315.90
5.6.320.0130.01315.81
5.6.310.0170.00915.84
5.6.300.0190.00915.92
5.6.290.0190.00715.58
5.6.280.0240.00515.71
5.6.270.0210.00715.95
5.6.260.0180.00715.69
5.6.250.0150.01215.73
5.6.240.0200.00815.93
5.6.230.0130.01315.88
5.6.220.0170.01315.67
5.6.210.0250.00815.70
5.6.200.0190.01115.74
5.6.190.0170.01015.84
5.6.180.0200.00815.91
5.6.170.0200.00515.73
5.6.160.0190.01015.81
5.6.150.0190.01115.88
5.6.140.0200.00715.88
5.6.130.0210.01015.69
5.6.120.0180.00815.77
5.6.110.0180.01215.87
5.6.100.0160.00915.91
5.6.90.0160.00915.91
5.6.80.0120.01415.72
5.6.70.0150.00915.77
5.6.60.0150.00915.77
5.6.50.0200.01015.70
5.6.40.0170.00915.87
5.6.30.0140.00815.77
5.6.20.0180.00515.76
5.6.10.0170.01015.71
5.6.00.0170.01115.86
5.5.380.0120.01114.20
5.5.370.0210.00414.15
5.5.360.0150.01014.39
5.5.350.0170.00914.27
5.5.340.0130.01514.35
5.5.330.0180.00514.31
5.5.320.0120.01114.21
5.5.310.0160.00814.21
5.5.300.0170.00714.35
5.5.290.0220.01014.34
5.5.280.0160.00814.28
5.5.270.0170.00514.21
5.5.260.0180.00814.34
5.5.250.0140.01314.30
5.5.240.0160.01014.20
5.5.230.0190.00414.05
5.5.220.0200.00514.22
5.5.210.0120.01114.27
5.5.200.0150.00914.23
5.5.190.0130.00914.15
5.5.180.0200.00814.30
5.5.170.0160.01114.34
5.5.160.0180.01014.33
5.5.150.0190.00514.19
5.5.140.0200.00414.36
5.5.130.0190.00814.24
5.5.120.0200.00514.28
5.5.110.0140.01014.12
5.5.100.0140.01014.18
5.5.90.0150.00614.10
5.5.80.0160.01414.22
5.5.70.0110.01114.25
5.5.60.0130.01214.18
5.5.50.0180.00714.16
5.5.40.0180.00714.26
5.5.30.0220.00714.22
5.5.20.0140.01114.30
5.5.10.0090.01514.08
5.5.00.0220.01114.29
5.4.450.0120.00814.32
5.4.440.0160.00714.33
5.4.430.0120.00814.29
5.4.420.0140.00414.34
5.4.410.0110.00714.35
5.4.400.0160.00614.33
5.4.390.0120.00514.18
5.4.380.0140.01014.19
5.4.370.0100.01114.21
5.4.360.0120.00914.01
5.4.350.0170.00214.20
5.4.340.0150.00314.35
5.4.330.0190.00314.21
5.4.320.0190.00014.24
5.4.310.0090.01014.13
5.4.300.0120.01014.35
5.4.290.0130.00414.18
5.4.280.0100.01114.04
5.4.270.0110.00714.19
5.4.260.0160.00214.28
5.4.250.0160.00214.33
5.4.240.0140.00714.22
5.4.230.0140.00514.29
5.4.220.0170.00614.38
5.4.210.0130.01514.19
5.4.200.0120.01114.23
5.4.190.0140.00314.27
5.4.180.0190.00414.03
5.4.170.0080.01014.36
5.4.160.0140.00514.22
5.4.150.0160.00514.29
5.4.140.0110.00614.08
5.4.130.0140.00714.02
5.4.120.0180.00614.25
5.4.110.0130.00714.12
5.4.100.0100.00714.31
5.4.90.0140.00714.27
5.4.80.0170.00414.17
5.4.70.0100.00814.27
5.4.60.0180.00514.31
5.4.50.0190.00414.30
5.4.40.0130.00514.28
5.4.30.0190.00414.31
5.4.20.0180.01314.17
5.4.10.0110.00514.13
5.4.00.0160.00614.01
5.3.290.0160.01413.88
5.3.280.0190.00513.78
5.3.270.0180.00313.85
5.3.260.0110.00813.97
5.3.250.0200.00513.96
5.3.240.0070.01013.94
5.3.230.0140.00513.96
5.3.220.0150.00713.99
5.3.210.0160.00513.94
5.3.200.0150.00613.90
5.3.190.0110.00914.03
5.3.180.0100.00913.88
5.3.170.0110.01314.08
5.3.160.0140.01114.08
5.3.150.0230.00014.07
5.3.140.0190.00913.91
5.3.130.0090.01213.89
5.3.120.0160.00413.88
5.3.110.0130.00613.89
5.3.100.0140.00913.91
5.3.90.0120.00614.04
5.3.80.0150.00813.90
5.3.70.0110.00913.90
5.3.60.0180.00414.00
5.3.50.0100.01313.97
5.3.40.0140.01013.93
5.3.30.0130.00513.98
5.3.20.0150.00513.95
5.3.10.0120.00613.90
5.3.00.0160.01013.76
5.2.170.0110.00313.48
5.2.160.0100.00813.37
5.2.150.0160.00313.48
5.2.140.0150.00513.40
5.2.130.0140.00613.49
5.2.120.0130.00713.31
5.2.110.0070.01113.32
5.2.100.0100.00813.32
5.2.90.0180.00413.39
5.2.80.0100.00613.27
5.2.70.0130.00513.25
5.2.60.0150.00313.40
5.2.50.0170.00113.42
5.2.40.0100.00713.43
5.2.30.0100.00713.23
5.2.20.0130.00513.35
5.2.10.0090.00913.29
5.2.00.0080.00413.22
5.1.60.0080.00412.83
5.1.50.0100.00512.87
5.1.40.0080.00413.01
5.1.30.0140.00213.00
5.1.20.0050.01112.96
5.1.10.0120.00612.94
5.1.00.0160.00512.87
5.0.50.0110.00412.83
5.0.40.0090.00312.83
5.0.30.0090.00212.83
5.0.20.0100.00612.83
5.0.10.0070.00612.83
5.0.00.0070.00712.83
4.4.90.0060.00112.83
4.4.80.0040.00812.83
4.4.70.0040.00412.83
4.4.60.0060.00612.83
4.4.50.0070.00312.83
4.4.40.0060.00112.83
4.4.30.0050.00212.83
4.4.20.0060.00312.83
4.4.10.0080.00112.83
4.4.00.0050.00212.83
4.3.110.0090.00312.83
4.3.100.0050.00512.83
4.3.90.0070.00312.83
4.3.80.0060.00412.83
4.3.70.0050.00312.83
4.3.60.0030.00512.83
4.3.50.0010.00612.83
4.3.40.0050.00512.83
4.3.30.0050.00112.83
4.3.20.0060.00012.83
4.3.10.0060.00212.83
4.3.00.0020.00512.83

preferences:
18.09 ms | 455 KiB | 5 Q